diff options
author | Rodolfo García Peñas <kix@kix.es> | 2012-09-15 22:23:38 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2012-09-15 22:23:38 +0200 |
commit | f599326999196d39df3679aa13ca73d743819550 (patch) | |
tree | 3c5cce44de3b667e8439e54c4723112e3df2fdd6 | |
parent | d03e448e0a113a075370c4187eba3601426b5e21 (diff) | |
download | suspend-utils-f599326999196d39df3679aa13ca73d743819550.tar.gz |
s2disk: Format strings in printf
To avoid format strings errors, is recomended set the format
string in printf().
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
-rw-r--r-- | bootsplash.c | 2 | ||||
-rw-r--r-- | splash.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bootsplash.c b/bootsplash.c index cfc5d45..44b1531 100644 --- a/bootsplash.c +++ b/bootsplash.c @@ -118,7 +118,7 @@ int bootsplash_dialog(const char *prompt) { int ret; bootsplash_to_verbose(); - printf(prompt); + printf("%s", prompt); ret = getchar(); bootsplash_to_silent(); @@ -53,7 +53,7 @@ static void splash_dummy_readpass(char *a, int b) { } static int splash_dialog(const char *prompt) { - printf(prompt); + printf("%s", prompt); return getchar(); } |