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

Unified Diff: client/tests/disktest/src/disktest.c

Issue 1196001: Don't treat the error message as a format string in die(). (Closed)
Patch Set: Combine two fprintf calls into one. Created 10 years, 9 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/tests/disktest/src/disktest.c
diff --git a/client/tests/disktest/src/disktest.c b/client/tests/disktest/src/disktest.c
index b07feb25f49a90515abc989449d3a7df66f48d9a..c7659e9a16a02f08addbcd0df93ef544a5ebfacd 100644
--- a/client/tests/disktest/src/disktest.c
+++ b/client/tests/disktest/src/disktest.c
@@ -43,8 +43,7 @@ unsigned int stop_on_error = 0;
void die(char *error)
{
- fprintf(stderr, error);
- fprintf(stderr, "\n");
+ fprintf(stderr, "%s\n", error);
exit(1);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698