diff --git a/cde/programs/dtstyle/I18nEnv.c b/cde/programs/dtstyle/I18nEnv.c index 674624eed..b8565a79d 100644 --- 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 ;