[Libreoffice-commits] .: soltools/mkdepend
Caolán McNamara
caolan at kemper.freedesktop.org
Sun Oct 31 13:17:48 PDT 2010
soltools/mkdepend/parse.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 9800d4e07acad07a29aeaf78ced4d832730526fc
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sun Oct 31 19:07:44 2010 +0000
strcpy cannot be used with overlapping src and dest
diff --git a/soltools/mkdepend/parse.c b/soltools/mkdepend/parse.c
index 6d6e079..ec7e7d4 100644
--- a/soltools/mkdepend/parse.c
+++ b/soltools/mkdepend/parse.c
@@ -347,7 +347,7 @@ int deftype (line, filep, file_red, file, parse_it, symbols)
/*
* copy the definition back to the beginning of the line.
*/
- strcpy (line, p);
+ memmove (line, p, strlen(p));
break;
case ELSE:
case ENDIF:
More information about the Libreoffice-commits
mailing list