placate gcc 8.0.1 sprintf overflow warnings in config tools
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 5 Apr 2018 13:21:34 +0000 (15:21 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 5 Apr 2018 13:21:34 +0000 (15:21 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
scripts/kconfig/confdata.c

index 8f4ecbd337a4146d44a0f1ac16ad8b9f9c0fba34..b05b96e454e58b0bca1c2655707026d4e0fdd29b 100644 (file)
@@ -334,7 +334,9 @@ int conf_write(const char *name)
        struct symbol *sym;
        struct menu *menu;
        const char *basename;
-       char dirname[128], tmpname[128], newname[128];
+       char dirname[128];
+       char tmpname[256];
+       char newname[256];
        int type, l;
        const char *str;
        time_t now;