[telepathy-doc/master] Update sender
Davyd Madeley
davyd at madeley.id.au
Sun Apr 26 19:31:08 PDT 2009
---
docs/examples/glib_salut_ft/sender.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/docs/examples/glib_salut_ft/sender.c b/docs/examples/glib_salut_ft/sender.c
index 3a720cb..3d1efce 100644
--- a/docs/examples/glib_salut_ft/sender.c
+++ b/docs/examples/glib_salut_ft/sender.c
@@ -54,10 +54,10 @@ file_transfer_unix_cb (TpChannel *channel,
handle_error (in_error);
- const char *address = g_value_get_string (addressv);
- strncpy (state->sa.sun_path, address, UNIX_PATH_MAX);
+ GArray *address = g_value_get_boxed (addressv);
+ strncpy (state->sa.sun_path, address->data, address->len);
- g_print (" > file_transfer_unix_cb (%s)\n", address);
+ g_print (" > file_transfer_unix_cb (%s)\n", state->sa.sun_path);
}
static gboolean
--
1.5.6.5
More information about the telepathy-commits
mailing list