From: <svn...@op...> - 2010-08-17 02:03:14
|
Author: cdfrey Date: Tue Aug 17 04:03:05 2010 New Revision: 6100 URL: http://www.opensync.org/changeset/6100 Log: Fixed printf format string bugs Messages may have printf-style escape codes, and may cause a crash, so print the messages indirectly with "%s" Modified: plugins/google-calendar/src/gcalendar.c Modified: plugins/google-calendar/src/gcalendar.c ============================================================================== --- plugins/google-calendar/src/gcalendar.c Tue Aug 17 00:36:03 2010 (r6099) +++ plugins/google-calendar/src/gcalendar.c Tue Aug 17 04:03:05 2010 (r6100) @@ -517,7 +517,7 @@ osync_free(timestamp); error: - osync_context_report_error(ctx, OSYNC_ERROR_GENERIC, msg); + osync_context_report_error(ctx, OSYNC_ERROR_GENERIC, "%s", msg); } @@ -666,7 +666,7 @@ osync_free(timestamp); error: - osync_context_report_error(ctx, OSYNC_ERROR_GENERIC, msg); + osync_context_report_error(ctx, OSYNC_ERROR_GENERIC, "%s", msg); } static void gc_commit_change_calendar(OSyncObjTypeSink *sink, @@ -823,7 +823,7 @@ if (raw_xml) free(raw_xml); - osync_context_report_error(ctx, OSYNC_ERROR_GENERIC, msg); + osync_context_report_error(ctx, OSYNC_ERROR_GENERIC, "%s", msg); osync_trace(TRACE_EXIT, "%s:%sHTTP code: %d", __func__, msg, result); } @@ -938,7 +938,7 @@ if (raw_xml) free(raw_xml); - osync_context_report_error(ctx, OSYNC_ERROR_GENERIC, msg); + osync_context_report_error(ctx, OSYNC_ERROR_GENERIC, "%s", msg); osync_trace(TRACE_EXIT, "%s:%sHTTP code: %d", __func__, msg, result); } |