summaryrefslogtreecommitdiff
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
commit9800d4e07acad07a29aeaf78ced4d832730526fc (patch)
tree9a196eb2b7e177f9abae704a9099f5b3baf1d9b4 /soltools
parent01c0675cee786b0ae90df0ac0bf78cf5fa647093 (diff)
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 6d6e07959..ec7e7d42e 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: