aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-10-02 01:14:23 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-10-02 01:14:23 +0800
commit14829e0cc4f6ed7e25f60aafb52a1ff17359731c (patch)
tree64a57cb276c4fcf0ddd62e19bc609b40ac4a10e7
parenta12475262ec41c4ca2639fd101136a6e25a9fd4e (diff)
downloadgsoc2013-evolution-14829e0cc4f6ed7e25f60aafb52a1ff17359731c.tar
gsoc2013-evolution-14829e0cc4f6ed7e25f60aafb52a1ff17359731c.tar.gz
gsoc2013-evolution-14829e0cc4f6ed7e25f60aafb52a1ff17359731c.tar.bz2
gsoc2013-evolution-14829e0cc4f6ed7e25f60aafb52a1ff17359731c.tar.lz
gsoc2013-evolution-14829e0cc4f6ed7e25f60aafb52a1ff17359731c.tar.xz
gsoc2013-evolution-14829e0cc4f6ed7e25f60aafb52a1ff17359731c.tar.zst
gsoc2013-evolution-14829e0cc4f6ed7e25f60aafb52a1ff17359731c.zip
Allocate the right number of bytes when
appending the string value [it was allocating one fewer than necessary]. [#28321] svn path=/trunk/; revision=18281
-rw-r--r--libical/ChangeLog6
-rw-r--r--libical/src/libicalvcal/vcc.y2
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);