From: <svn...@op...> - 2009-03-25 22:56:43
|
Author: dgollub Date: Wed Mar 25 23:56:37 2009 New Revision: 5319 URL: http://www.opensync.org/changeset/5319 Log: Use osync-memory function to allocate buffer for format print function. Modified: plugins/file-sync/src/file.c Modified: plugins/file-sync/src/file.c ============================================================================== --- plugins/file-sync/src/file.c Wed Mar 25 23:49:27 2009 (r5318) +++ plugins/file-sync/src/file.c Wed Mar 25 23:56:37 2009 (r5319) @@ -22,6 +22,7 @@ #include <glib.h> #include <opensync/opensync.h> +#include <opensync/opensync-common.h> #include <opensync/opensync-format.h> #include "file.h" @@ -157,7 +158,7 @@ { OSyncFileFormat *file = (OSyncFileFormat *)data; - char *printable = g_strdup_printf ("File %s: size: %i", file->path, file->size); + char *printable = osync_strdup_printf ("File %s: size: %i", file->path, file->size); return printable; } |