From: Daniel Golle Date: Thu, 21 Jul 2016 01:19:22 +0000 (+0200) Subject: block: don't truncate mountpoint path X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b5f6b8266465d8401a9699d5245c1058424f733c;p=project%2Ffstools.git block: don't truncate mountpoint path Signed-off-by: Daniel Golle --- diff --git a/block.c b/block.c index 85c5b58..a06e200 100644 --- a/block.c +++ b/block.c @@ -753,7 +753,7 @@ static int mount_device(struct blkid_struct_probe *pr, int hotplug) } if (anon_mount) { - char target[] = "/mnt/mmcblk123"; + char target[32]; int err = 0; snprintf(target, sizeof(target), "/mnt/%s", device);