mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
dtstyle: Coverity 87337
This commit is contained in:
parent
5481b6b753
commit
a6cdaa8850
1 changed files with 1 additions and 1 deletions
|
@ -465,7 +465,7 @@ ReadPipe (
|
|||
|
||||
nbytes = read (*fd, buf, 512);
|
||||
|
||||
if (nbytes) {
|
||||
if (nbytes > 0) {
|
||||
savebuf = XtRealloc(savebuf, savebuf_bytes + nbytes);
|
||||
memcpy(savebuf+savebuf_bytes, buf, nbytes);
|
||||
savebuf_bytes += nbytes ;
|
||||
|
|
Loading…
Reference in a new issue