Kaydet (Commit) 9e8701c7 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1233618 Overlapping buffer in memory copy

Change-Id: I062dd96bfc4abf2bdaec2c17d1cf57d853d655d8
üst a7232e3f
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment