aboutsummaryrefslogtreecommitdiffstats
path: root/libical
diff options
context:
space:
mode:
Diffstat (limited to 'libical')
-rw-r--r--libical/ChangeLog7
-rw-r--r--libical/src/libical/icallangbind.c1
-rw-r--r--libical/src/libical/icalrecur.c9
3 files changed, 15 insertions, 2 deletions
diff --git a/libical/ChangeLog b/libical/ChangeLog
index 1e95366cc4..1f7ac5735e 100644
--- a/libical/ChangeLog
+++ b/libical/ChangeLog
@@ -1,3 +1,10 @@
+2001-02-06 Christopher James Lahey <clahey@ximian.com>
+
+ * src/libical/icallangbind.c: Added a missing #include here.
+
+ * src/libical/icalrecur.c (icalrecur_add_bydayrules): Copy the
+ passed in const vals since we change it.
+
2001-02-05 JP Rosevear <jpr@ximian.com>
* src/libical/icallangbind.c (icallangbind_get_property): Use the
diff --git a/libical/src/libical/icallangbind.c b/libical/src/libical/icallangbind.c
index 56376bf5a2..d52f491b93 100644
--- a/libical/src/libical/icallangbind.c
+++ b/libical/src/libical/icallangbind.c
@@ -19,6 +19,7 @@
======================================================================*/
#include "ical.h"
+#include <malloc.h>
diff --git a/libical/src/libical/icalrecur.c b/libical/src/libical/icalrecur.c
index db3f7aefff..d5c73e80dd 100644
--- a/libical/src/libical/icalrecur.c
+++ b/libical/src/libical/icalrecur.c
@@ -277,9 +277,12 @@ void icalrecur_add_bydayrules(struct icalrecur_parser *parser, const char* vals)
icalrecurrencetype_weekday wd;
short *array = parser->rt.by_day;
char* end;
+ char* vals_copy;
- end = (char*)vals+strlen(vals);
- n = vals;
+ vals_copy = strdup(vals);
+
+ end = (char*)vals_copy+strlen(vals_copy);
+ n = vals_copy;
while(n != 0){
@@ -323,6 +326,8 @@ void icalrecur_add_bydayrules(struct icalrecur_parser *parser, const char* vals)
}
+ free(vals_copy);
+
}