From: Hans Dedecker Date: Fri, 4 Jan 2019 10:27:47 +0000 (+0100) Subject: mount: fix gcc7 format-overflow errors X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4177583263225b59274e80c250cc68e20943c7e8;p=oweals%2Fmountd.git mount: fix gcc7 format-overflow errors Signed-off-by: Hans Dedecker --- 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);