From 3f2596118b36adc540089e67f904bd181626483c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Thu, 10 Sep 2009 20:41:43 +0000 Subject: [PATCH] * don't use wprintf if we don't have a format string; clears warning. --- webcit/calendar_tools.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/webcit/calendar_tools.c b/webcit/calendar_tools.c index 95bae39f3..b717cd2aa 100644 --- a/webcit/calendar_tools.c +++ b/webcit/calendar_tools.c @@ -34,6 +34,7 @@ char *hourname[] = { */ void display_icaltimetype_as_webform(struct icaltimetype *t, char *prefix, int date_only) { + wcsession *WCC = WC; int i; time_t now; struct tm tm_now; @@ -61,12 +62,12 @@ void display_icaltimetype_as_webform(struct icaltimetype *t, char *prefix, int d } wprintf("WBuf, prefix, -1, 0); wprintf("\" id=\""); - wprintf(prefix); + StrBufAppendBufPlain(WCC->WBuf, prefix, -1, 0); wprintf("\" size=\"10\" maxlength=\"10\" value=\""); wc_strftime(timebuf, 32, "%Y-%m-%d", &tm); - wprintf(timebuf); + StrBufAppendBufPlain(WCC->WBuf, timebuf, -1, 0); wprintf("\">"); StrBufAppendPrintf(WC->trailing_javascript, "attachDatePicker('"); @@ -81,7 +82,7 @@ void display_icaltimetype_as_webform(struct icaltimetype *t, char *prefix, int d } wprintf("WBuf, prefix, -1, 0); wprintf("_time\">"); wprintf(_("Hour: ")); wprintf("