summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-10-01 20:17:20 +0100
committerCaolán McNamara <caolanm@redhat.com>2010-10-05 08:53:13 +0100
commit03657f66600c64b33443c30952054c11d82f9c7d (patch)
tree6301edf5ca70b171351525ff415bd017b4a51a86 /idlc
parente7d4f41f0584d8581c6c99cc77dfaf82480a2669 (diff)
idlcpp uses memcpy on overlapping areas
Diffstat (limited to 'idlc')
-rw-r--r--idlc/source/preproc/tokens.c2
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;
}
}