diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-02 14:20:15 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-02 14:49:10 +0100 |
commit | 9e8701c71186c5357dddf8e38763426fc183b08e (patch) | |
tree | 0293e88e9a98d5d6608658bb0111a331d4215503 /soltools/cpp | |
parent | a7232e3f54c0c2ff1cb65d5d00027427ebb1016a (diff) |
coverity#1233618 Overlapping buffer in memory copy
Change-Id: I062dd96bfc4abf2bdaec2c17d1cf57d853d655d8
Diffstat (limited to 'soltools/cpp')
-rw-r--r-- | soltools/cpp/_tokens.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/soltools/cpp/_tokens.c b/soltools/cpp/_tokens.c index bd75a0159f93..e31ccbd1c4ff 100644 --- a/soltools/cpp/_tokens.c +++ b/soltools/cpp/_tokens.c @@ -492,7 +492,7 @@ void { if ( write(1, wbuf, OBS) != -1 ) { if (wbp > &wbuf[OBS]) - memcpy(wbuf, wbuf + OBS, wbp - &wbuf[OBS]); + memmove(wbuf, wbuf + OBS, wbp - &wbuf[OBS]); wbp -= OBS; } else exit(1); |