Enlightenment CVS committal
Author : tsauerbeck
Project : e17
Module : libs/edje
Dir : e17/libs/edje/src/bin
Modified Files:
edje_cc_parse.c
Log Message:
strcpy() doesn't allow copying overlapping strings
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/src/bin/edje_cc_parse.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- edje_cc_parse.c 16 Jan 2004 00:51:43 -0000 1.13
+++ edje_cc_parse.c 17 Jan 2004 12:39:01 -0000 1.14
@@ -237,11 +237,11 @@
while (*p)
{
if (*p == '"')
- strcpy(p, p + 1);
+ memmove(p, p + 1, strlen(p));
else if ((*p == '\\') && (*(p + 1) == '"'))
- strcpy(p, p + 1);
+ memmove(p, p + 1, strlen(p));
else if ((*p == '\\') && (*(p + 1) == '\\'))
- strcpy(p, p + 1);
+ memmove(p, p + 1, strlen(p));
else
p++;
}
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs