projects
/
emu8051.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
702da8f
)
Fix [-Wformat-security] warning
author
Hugo Villeneuve
<hugo@hugovil.com>
Fri, 3 Jan 2014 06:45:47 +0000
(
01:45
-0500)
committer
Hugo 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
patch
|
blob
|
history
diff --git
a/src/cli/emuconsole.c
b/src/cli/emuconsole.c
index
f29146d
..
9948a93
100644
(file)
--- a/
src/cli/emuconsole.c
+++ b/
src/cli/emuconsole.c
@@
-313,7
+313,7
@@
console_main(void)
Parameter1[0] = '\0';
Parameter2[0] = '\0';
Parameter1[0] = '\0';
Parameter2[0] = '\0';
- printf(prompt);
+ printf(
"%s",
prompt);
(void) getline(&line, &len, stdin);
Capitalize(line);
RemoveSpaces(line);
(void) getline(&line, &len, stdin);
Capitalize(line);
RemoveSpaces(line);