From: Olivier Matz Date: Fri, 24 Dec 2010 12:56:26 +0000 (+0100) Subject: cmdline (merge-intel): fix format string in snprintf() X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=843b62a311f0769b3dfd1c5e650a3fe1f2966866;p=libcmdline.git cmdline (merge-intel): fix format string in snprintf() Signed-off-by: Olivier Matz --- diff --git a/src/lib/cmdline.c b/src/lib/cmdline.c index e6662bd..0035f44 100644 --- a/src/lib/cmdline.c +++ b/src/lib/cmdline.c @@ -113,7 +113,7 @@ cmdline_write_char(struct rdline *rdl, char c) void cmdline_set_prompt(struct cmdline *cl, const char *prompt) { - snprintf(cl->prompt, sizeof(cl->prompt), prompt); + snprintf(cl->prompt, sizeof(cl->prompt), "%s", prompt); } struct cmdline *