diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-10-01 20:17:20 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-10-05 08:53:13 +0100 |
commit | 47e657c2757fa6b8dcb7069bb3882aeba7a3c504 (patch) | |
tree | a58e0c59dc86b2da91784042587a9dbf628037ef /idlc | |
parent | c2800f2bba1a6aaa8a9bbb7f2caf1eac92fffb2d (diff) |
idlcpp uses memcpy on overlapping areas
Diffstat (limited to 'idlc')
-rw-r--r-- | idlc/source/preproc/tokens.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/idlc/source/preproc/tokens.c b/idlc/source/preproc/tokens.c index b8dbd45c5..3c6481397 100644 --- a/idlc/source/preproc/tokens.c +++ b/idlc/source/preproc/tokens.c @@ -477,7 +477,7 @@ void if (write(1, wbuf, OBS) != OBS) error(ERROR, "short write!"); if (wbp > &wbuf[OBS]) - memcpy(wbuf, wbuf + OBS, wbp - &wbuf[OBS]); + memmove(wbuf, wbuf + OBS, wbp - &wbuf[OBS]); wbp -= OBS; } } |