diff options
Diffstat (limited to 'libical')
-rw-r--r-- | libical/ChangeLog | 6 | ||||
-rw-r--r-- | libical/src/libicalvcal/vcc.y | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/libical/ChangeLog b/libical/ChangeLog index 8511fd5169..a32d033ef3 100644 --- a/libical/ChangeLog +++ b/libical/ChangeLog @@ -1,3 +1,9 @@ +2002-10-01 Ettore Perazzoli <ettore@ximian.com> + + * src/libicalvcal/vcc.y: Allocate the right number of bytes when + appending the string value [it was allocating one fewer than + necessary]. [#28321] + 2002-06-18 JP Rosevear <jpr@ximian.com> * Update timezones (from Damon) diff --git a/libical/src/libicalvcal/vcc.y b/libical/src/libicalvcal/vcc.y index 95d5858d81..5338f563a6 100644 --- a/libical/src/libicalvcal/vcc.y +++ b/libical/src/libicalvcal/vcc.y @@ -419,7 +419,7 @@ static void enterValues(const char *value) using ';' to separate the values. */ if (vObjectUStringZValue(curProp)) { p1 = fakeCString(vObjectUStringZValue(curProp)); - p2 = malloc((strlen(p1)+strlen(value)+1)); + p2 = malloc((strlen(p1)+strlen(value)+2)); strcpy(p2, p1); deleteStr(p1); |