io: fix printf() without constant format
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 3 Jul 2014 20:33:21 +0000 (22:33 +0200)
committerJo-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

index 3990e799dd66368a5315d76244c6c9df1d5dcd01..f9c07c3609ddc8e23e396e0b1a8624c4e260f479 100644 (file)
@@ -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));