]> code.citadel.org Git - citadel.git/blobdiff - webcit/calendar.c
* persistantly handle the bufferlengths for dates; snprintf doesn't terminate strings...
[citadel.git] / webcit / calendar.c
index 1a0384df4658bbd31abb1a36601afdf7288477f4..8808618c06f2b4448c19e929acb275a5d2cd20ef 100644 (file)
@@ -125,7 +125,7 @@ void cal_process_object(StrBuf *Target,
                        }
                        else {
                                tt = icaltime_as_timet(t);
-                               webcit_fmt_date(buf, tt, DATEFMT_FULL);
+                               webcit_fmt_date(buf, 256, tt, DATEFMT_FULL);
                                StrBufAppendPrintf(Target, "<dt>");
                                StrBufAppendPrintf(Target, _("Starting date/time:"));
                                StrBufAppendPrintf(Target, "</dt><dd>%s</dd>", buf);
@@ -136,7 +136,7 @@ void cal_process_object(StrBuf *Target,
                if (p != NULL) {
                        t = icalproperty_get_dtend(p);
                        tt = icaltime_as_timet(t);
-                       webcit_fmt_date(buf, tt, DATEFMT_FULL);
+                       webcit_fmt_date(buf, 256, tt, DATEFMT_FULL);
                        StrBufAppendPrintf(Target, "<dt>");
                        StrBufAppendPrintf(Target, _("Ending date/time:"));
                        StrBufAppendPrintf(Target, "</dt><dd>%s</dd>", buf);
@@ -1089,7 +1089,6 @@ void load_ical_object(long msgnum, int unread,
                        body_bytes += 2;
                }
        }
-       if (relevant_source != NULL) lprintf(9, "Here it is:\n%s\n", relevant_source);
        FreeStrBuf(&Buf);
 
        /* If MSG4 didn't give us the part we wanted, but we know that we can find it