scripts/config: fix menuconfig segfault in text inputs when format patterns are enter...
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 14 Oct 2012 17:11:57 +0000 (17:11 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 14 Oct 2012 17:11:57 +0000 (17:11 +0000)
SVN-Revision: 33773

scripts/config/lxdialog/lxdialog.c

index 79f6c5fb5cef812df3473f7985cfc44a5bcdc936..5b8e3e9473c08369c05cb8ee35d1f0d8b640590a 100644 (file)
@@ -189,7 +189,7 @@ int j_inputbox(const char *t, int ac, const char *const *av)
        int ret = dialog_inputbox(t, av[2], atoi(av[3]), atoi(av[4]),
                                  ac == 6 ? av[5] : (char *)NULL);
        if (ret == 0)
-               fprintf(stderr, dialog_input_result);
+               fprintf(stderr, "%s", dialog_input_result);
        return ret;
 }