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 3990e79..f9c07c3 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));