diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-10-31 19:07:44 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-10-31 20:16:37 +0000 |
commit | 9800d4e07acad07a29aeaf78ced4d832730526fc (patch) | |
tree | 9a196eb2b7e177f9abae704a9099f5b3baf1d9b4 /soltools | |
parent | 01c0675cee786b0ae90df0ac0bf78cf5fa647093 (diff) |
strcpy cannot be used with overlapping src and dest
Diffstat (limited to 'soltools')
-rw-r--r-- | soltools/mkdepend/parse.c | 2 |
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: |