summaryrefslogtreecommitdiffstats
path: root/soltools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-10-31 19:07:44 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-10-31 20:16:37 +0000
commit82aea471a0b5cf36d4f431229cd0a37084eb89b0 (patch)
tree2ba30e4329389a7e5f3572beedc9a954f146fadf /soltools
parentCleaning and organizing of configure.in (diff)
downloadcore-82aea471a0b5cf36d4f431229cd0a37084eb89b0.tar.gz
core-82aea471a0b5cf36d4f431229cd0a37084eb89b0.zip
strcpy cannot be used with overlapping src and dest
Diffstat (limited to 'soltools')
-rw-r--r--soltools/mkdepend/parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/soltools/mkdepend/parse.c b/soltools/mkdepend/parse.c
index ddbc016a3a29..8a9fb6b2ea40 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: