projects
/
project
/
luci2
/
ui.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5016400
)
io: fix printf() without constant format
author
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 3 Jul 2014 20:33:21 +0000
(22:33 +0200)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 3 Jul 2014 20:33:21 +0000
(22:33 +0200)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
luci2/src/io/main.c
patch
|
blob
|
history
diff --git
a/luci2/src/io/main.c
b/luci2/src/io/main.c
index 3990e799dd66368a5315d76244c6c9df1d5dcd01..f9c07c3609ddc8e23e396e0b1a8624c4e260f479 100644
(file)
--- a/
luci2/src/io/main.c
+++ b/
luci2/src/io/main.c
@@
-299,7
+299,7
@@
failure(int e, const char *message)
{
printf("Status: 500 Internal Server failure\r\n");
printf("Content-Type: text/plain\r\n\r\n");
- printf(message);
+ printf(
"%s",
message);
if (e)
printf(": %s", strerror(e));