X-Git-Url: https://git.librecmc.org/?p=oweals%2Fmountd.git;a=blobdiff_plain;f=mount.c;h=2d5114cf8cefcc5c972f7941c24bcf204d6062a6;hp=26e416e3f22c99c2304bcc8f1dde68578a21c057;hb=4177583263225b59274e80c250cc68e20943c7e8;hpb=8e37c62b944cc92f24848c907024685ad0612d20 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);