int is_update = 0;
char divname[32];
static int divcount = 0;
+ const char *ch;
sprintf(divname, "rsvp%04x", ++divcount);
the_method = icalproperty_get_method(method);
StrBufAppendPrintf(Target, "<div id=\"%s_title\">", divname);
- StrBufAppendPrintf(Target, "<img src=\"static/calarea_48x.gif\">");
+ StrBufAppendPrintf(Target, "<img src=\"static/icons/essen/32x32/calendar.png\">");
StrBufAppendPrintf(Target, "<span>");
switch(the_method) {
case ICAL_METHOD_REQUEST:
StrBufAppendPrintf(Target, "<dt>");
StrBufAppendPrintf(Target, _("Attendee:"));
StrBufAppendPrintf(Target, "</dt><dd>");
- safestrncpy(buf, icalproperty_get_attendee(p), sizeof buf);
- if (!strncasecmp(buf, "MAILTO:", 7)) {
+ ch = icalproperty_get_attendee(p);
+ if ((ch != NULL) && !strncasecmp(buf, "MAILTO:", 7)) {
/** screen name or email address */
- strcpy(buf, &buf[7]);
+ safestrncpy(buf, ch + 7, sizeof(buf));
striplt(buf);
StrEscAppend(Target, NULL, buf, 0, 0);
StrBufAppendPrintf(Target, " ");
serv_getln(buf, sizeof buf);
if (buf[0] == '2') {
- wc_printf("<img src=\"static/calarea_48x.gif\"><span>");
+ wc_printf("<img src=\"static/icons/essen/32x32/calendar.png\"><span>");
if (!strcasecmp(bstr("sc"), "accept")) {
wc_printf(_("You have accepted this meeting invitation. "
"It has been entered into your calendar.")
wc_printf(_("A reply has been sent to the meeting organizer."));
wc_printf("</span>");
} else {
- wc_printf("<img align=\"center\" src=\"static/error.gif\"><span>");
+ wc_printf("<img align=\"center\" src=\"static/icons/error.gif\"><span>");
wc_printf("%s\n", &buf[4]);
wc_printf("</span>");
}
serv_getln(buf, sizeof buf);
if (buf[0] == '2') {
- wc_printf("<img src=\"static/calarea_48x.gif\"><span>");
+ wc_printf("<img src=\"static/icons/calendar.png\"><span>");
if (!strcasecmp(bstr("sc"), "update")) {
/* Translators: RSVP aka Répondez s'il-vous-plaît Is the term
that the recipient of an ical-invitation should please
}
wc_printf("</span>");
} else {
- wc_printf("<img src=\"static/error.gif\"><span> %s\n", &buf[4]);
+ wc_printf("<img src=\"static/icons/error.gif\"><span> %s\n", &buf[4]);
wc_printf("</span>");
}