projects
/
oweals
/
cde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5481b6b
)
dtstyle: Coverity 87337
author
Peter Howkins
<flibble@users.sf.net>
Tue, 3 Jul 2018 17:49:43 +0000
(18:49 +0100)
committer
Peter Howkins
<flibble@users.sf.net>
Tue, 3 Jul 2018 17:49:43 +0000
(18:49 +0100)
cde/programs/dtstyle/I18nEnv.c
patch
|
blob
|
history
diff --git
a/cde/programs/dtstyle/I18nEnv.c
b/cde/programs/dtstyle/I18nEnv.c
index 674624eed87ea10ff606fc02bbe44b85ab493468..b8565a79d8bdca4331e5c4744af2c01a5f9ec2f3 100644
(file)
--- a/
cde/programs/dtstyle/I18nEnv.c
+++ b/
cde/programs/dtstyle/I18nEnv.c
@@
-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 ;