Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(397)

Unified Diff: mojo/examples/wget/wget.cc

Issue 414633003: Mojo: Set a default value for the --origin command line switch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | mojo/shell/mojo_url_resolver.cc » ('j') | mojo/shell/mojo_url_resolver.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « no previous file | mojo/shell/mojo_url_resolver.cc » ('j') | mojo/shell/mojo_url_resolver.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698