| Index: mojo/examples/wget/wget.cc
|
| diff --git a/mojo/examples/wget/wget.cc b/mojo/examples/wget/wget.cc
|
| index 55a8cb85b0be5830a153b61e91000fa7338057e4..507b3cb839703dff03ccf61c2dbf59f44bd42d54 100644
|
| --- a/mojo/examples/wget/wget.cc
|
| +++ b/mojo/examples/wget/wget.cc
|
| @@ -51,7 +51,7 @@ class ResponsePrinter {
|
| MOJO_HANDLE_SIGNAL_READABLE,
|
| MOJO_DEADLINE_INDEFINITE);
|
| } else if (result == MOJO_RESULT_OK) {
|
| - if (fwrite(buf, num_bytes, 1, stdout) != num_bytes) {
|
| + if (fwrite(buf, num_bytes, 1, stdout) != 1) {
|
| printf("\nUnexpected error writing to file\n");
|
| break;
|
| }
|
|
|