CALENDAR: attendees are to be found on ch not on buf.
authorWilfried Goesgens <dothebart@citadel.org>
Sun, 28 Oct 2012 11:07:55 +0000 (12:07 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 28 Oct 2012 11:07:55 +0000 (12:07 +0100)
webcit/calendar.c

index b919f001a5c6595de4c7de430e18ac206bd4956f..2e486dab8ae9b31aa30dcfdb43d26b8b4be41d47 100644 (file)
@@ -178,7 +178,7 @@ void cal_process_object(StrBuf *Target,
                StrBufAppendPrintf(Target, _("Attendee:"));
                StrBufAppendPrintf(Target, "</dt><dd>");
                ch = icalproperty_get_attendee(p);
-               if ((ch != NULL) && !strncasecmp(buf, "MAILTO:", 7)) {
+               if ((ch != NULL) && !strncasecmp(ch, "MAILTO:", 7)) {
 
                        /** screen name or email address */
                        safestrncpy(buf, ch + 7, sizeof(buf));