Fix [-Wformat-security] warning
authorHugo Villeneuve <hugo@hugovil.com>
Fri, 3 Jan 2014 06:45:47 +0000 (01:45 -0500)
committerHugo Villeneuve <hugo@hugovil.com>
Fri, 3 Jan 2014 06:58:18 +0000 (01:58 -0500)
Original warning message:
emuconsole.c:316:3: warning: format not a string literal and no format arguments [-Wformat-security]

src/cli/emuconsole.c

index f29146d..9948a93 100644 (file)
@@ -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);