From 14829e0cc4f6ed7e25f60aafb52a1ff17359731c Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Tue, 1 Oct 2002 17:14:23 +0000 Subject: Allocate the right number of bytes when appending the string value [it was allocating one fewer than necessary]. [#28321] svn path=/trunk/; revision=18281 --- libical/ChangeLog | 6 ++++++ libical/src/libicalvcal/vcc.y | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'libical') 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 + + * 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 * 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); -- cgit