From: <svn...@op...> - 2010-08-13 23:00:34
|
Author: cdfrey Date: Sat Aug 14 01:00:27 2010 New Revision: 6085 URL: http://www.opensync.org/changeset/6085 Log: Remove redundant dir slashes, since they are included in get_default_configdir() Easier portability Modified: plugins/google-calendar/src/gcalendar.c Modified: plugins/google-calendar/src/gcalendar.c ============================================================================== --- plugins/google-calendar/src/gcalendar.c Sat Aug 14 01:00:21 2010 (r6084) +++ plugins/google-calendar/src/gcalendar.c Sat Aug 14 01:00:27 2010 (r6085) @@ -178,7 +178,7 @@ if (result == -1) goto error; - snprintf(buffer, sizeof(buffer) - 1, "%s/gcal2osync.xslt", + snprintf(buffer, sizeof(buffer) - 1, "%sgcal2osync.xslt", plgdata->xslt_path); if ((result = xslt_initialize(plgdata->xslt_ctx_gcal, buffer))) goto error; @@ -210,7 +210,7 @@ if (result == -1) goto error; - snprintf(buffer, sizeof(buffer) - 1, "%s/gcont2osync.xslt", + snprintf(buffer, sizeof(buffer) - 1, "%sgcont2osync.xslt", plgdata->xslt_path); if ((result = xslt_initialize(plgdata->xslt_ctx_gcont, buffer))) goto error; @@ -499,7 +499,7 @@ no_changes: // Load XSLT style to convert osync xmlformat-contact --> gdata - snprintf(buffer, sizeof(buffer) - 1, "%s/osync2gcont.xslt", + snprintf(buffer, sizeof(buffer) - 1, "%sosync2gcont.xslt", plgdata->xslt_path); if ((result = xslt_initialize(plgdata->xslt_ctx_gcont, buffer))) { msg = "Cannot initialize new XSLT!\n"; |