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 | 82aea471a0b5cf36d4f431229cd0a37084eb89b0 (patch) | |
tree | 2ba30e4329389a7e5f3572beedc9a954f146fadf /soltools/mkdepend | |
parent | 2cfc85b44e63178bfd196701b2a13d8bb8843037 (diff) |
strcpy cannot be used with overlapping src and dest
Diffstat (limited to 'soltools/mkdepend')
-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 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: |