From: LRN Date: Wed, 11 Jul 2012 20:19:45 +0000 (+0000) Subject: A small fix for W32cat X-Git-Tag: initial-import-from-subversion-38251~12537 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=563e135ff6ae14706e518bae3fb2971c3c60ec17;p=oweals%2Fgnunet.git A small fix for W32cat --- diff --git a/src/util/w32cat.c b/src/util/w32cat.c index 0c5091c66..4c60c4906 100644 --- a/src/util/w32cat.c +++ b/src/util/w32cat.c @@ -79,7 +79,7 @@ main (int argc, char **argv) { unsigned char c; b = ReadFile (stdi, &c, 1, &r, NULL); - if (r > 0) + if (b && r > 0) { b = WriteFile (stdo, &c, 1, &w, NULL); if (b == 0)