aboutsummaryrefslogtreecommitdiffstats
path: root/libical/src
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 /libical/src
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
Diffstat (limited to 'libical/src')
-rw-r--r--libical/src/libicalvcal/vcc.y2
1 files changed, 1 insertions, 1 deletions
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);