From d878ccca9cc2537f4046a618aa9122967aa2ce3a Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 5 Apr 2018 15:21:34 +0200 Subject: [PATCH] placate gcc 8.0.1 sprintf overflow warnings in config tools Signed-off-by: Denys Vlasenko --- scripts/kconfig/confdata.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c index 8f4ecbd33..b05b96e45 100644 --- a/scripts/kconfig/confdata.c +++ b/scripts/kconfig/confdata.c @@ -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; -- 2.25.1