From 4177583263225b59274e80c250cc68e20943c7e8 Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Fri, 4 Jan 2019 11:27:47 +0100 Subject: [PATCH] mount: fix gcc7 format-overflow errors Signed-off-by: Hans Dedecker --- mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mount.c b/mount.c index 26e416e..2d5114c 100644 --- a/mount.c +++ b/mount.c @@ -394,7 +394,7 @@ static char* mount_get_serial(char *dev) { int id; struct stat buf; - char tmp3[255]; + char tmp3[strlen(namelist[n]->d_name) + strlen(dev) + 31]; int ret; *t = 0; id = atoi(namelist[n]->d_name); -- 2.25.1