[cairo-commit] libsvg/src svg_text.c,1.11,1.12
Carl Worth
commit at pdx.freedesktop.org
Thu Apr 21 10:58:23 PDT 2005
Committed by: cworth
Update of /cvs/cairo/libsvg/src
In directory gabe:/tmp/cvs-serv23765/src
Modified Files:
svg_text.c
Log Message:
* src/svg_text.c (_svg_text_init_copy): Fix to actually copy
memory for text->chars.
Index: svg_text.c
===================================================================
RCS file: /cvs/cairo/libsvg/src/svg_text.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- svg_text.c 11 Apr 2005 16:20:09 -0000 1.11
+++ svg_text.c 21 Apr 2005 17:58:21 -0000 1.12
@@ -40,6 +40,9 @@
svg_text_t *other)
{
*text = *other;
+ text->chars = strdup (other->chars);
+ if (text->chars == NULL)
+ return SVG_STATUS_NO_MEMORY;
return SVG_STATUS_SUCCESS;
}
More information about the cairo-commit
mailing list