X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fcalendar_tools.c;fp=webcit%2Fcalendar_tools.c;h=b717cd2aacc7908bb79a99f4a197e93d82be891a;hb=3f2596118b36adc540089e67f904bd181626483c;hp=95bae39f38a74dc763975a0496dc302b86d23c75;hpb=2218a390357fcff54cd517aa072074756f0cf77e;p=citadel.git
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("