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 | 03657f66600c64b33443c30952054c11d82f9c7d (patch) | |
tree | 6301edf5ca70b171351525ff415bd017b4a51a86 /idlc | |
parent | e7d4f41f0584d8581c6c99cc77dfaf82480a2669 (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 23ab88a5a9e3..d9ac8e6261e3 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; } } |