Skip to content

Commit

Permalink
Get rid of warnings when compiled with -Wformat-security
Browse files Browse the repository at this point in the history
Change-Id: I2bfc6582a8198b22af08e4b8d58f532dc138cc02
  • Loading branch information
nickkral committed May 13, 2010
1 parent 0253ffd commit dd26bb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions logwrapper/logwrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
#include "cutils/log.h"

void fatal(const char *msg) {
fprintf(stderr, msg);
LOG(LOG_ERROR, "logwrapper", msg);
fprintf(stderr, "%s", msg);
LOG(LOG_ERROR, "logwrapper", "%s", msg);
exit(-1);
}

Expand Down

0 comments on commit dd26bb3

Please sign in to comment.