SHA256
1
0
forked from pool/libical
libical/libical-0.46-fix-endless-loop.patch

14 lines
549 B
Diff
Raw Normal View History

Index: trunk/libical/src/libical/icalrecur.c
===================================================================
--- trunk/libical/src/libical/icalrecur.c (revision 1043)
+++ trunk/libical/src/libical/icalrecur.c (revision 1044)
@@ -361,7 +361,7 @@
char *t, *n;
int i=0;
int sign = 1;
- int weekno = 0;
+ char weekno = 0; /* note: Novell/Groupwise sends BYDAY=255SU, so we fit in a signed char to get -1 SU for last sunday. */
icalrecurrencetype_weekday wd;
short *array = parser->rt.by_day;
char* end;