From: Hugo Villeneuve Date: Fri, 3 Jan 2014 06:45:47 +0000 (-0500) Subject: Fix [-Wformat-security] warning X-Git-Tag: v2.0.0~20 X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=57f6d79aa0e3b2859036d3bdc4c1784eaf481612;p=emu8051.git Fix [-Wformat-security] warning Original warning message: emuconsole.c:316:3: warning: format not a string literal and no format arguments [-Wformat-security] --- diff --git a/src/cli/emuconsole.c b/src/cli/emuconsole.c index f29146d..9948a93 100644 --- a/src/cli/emuconsole.c +++ b/src/cli/emuconsole.c @@ -313,7 +313,7 @@ console_main(void) Parameter1[0] = '\0'; Parameter2[0] = '\0'; - printf(prompt); + printf("%s", prompt); (void) getline(&line, &len, stdin); Capitalize(line); RemoveSpaces(line);