diff options
author | LRN <lrn1986@gmail.com> | 2012-07-11 20:19:45 +0000 |
---|---|---|
committer | LRN <lrn1986@gmail.com> | 2012-07-11 20:19:45 +0000 |
commit | 563e135ff6ae14706e518bae3fb2971c3c60ec17 (patch) | |
tree | cf513664188fe6a803ca7442c424afd14a62363c /src/util/w32cat.c | |
parent | 437a71dbf71cca304203529fc7bf96308d391e93 (diff) | |
download | gnunet-563e135ff6ae14706e518bae3fb2971c3c60ec17.tar.gz gnunet-563e135ff6ae14706e518bae3fb2971c3c60ec17.zip |
A small fix for W32cat
Diffstat (limited to 'src/util/w32cat.c')
-rw-r--r-- | src/util/w32cat.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
79 | { | 79 | { |
80 | unsigned char c; | 80 | unsigned char c; |
81 | b = ReadFile (stdi, &c, 1, &r, NULL); | 81 | b = ReadFile (stdi, &c, 1, &r, NULL); |
82 | if (r > 0) | 82 | if (b && r > 0) |
83 | { | 83 | { |
84 | b = WriteFile (stdo, &c, 1, &w, NULL); | 84 | b = WriteFile (stdo, &c, 1, &w, NULL); |
85 | if (b == 0) | 85 | if (b == 0) |