From b5f6b8266465d8401a9699d5245c1058424f733c Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Thu, 21 Jul 2016 03:19:22 +0200 Subject: [PATCH] block: don't truncate mountpoint path Signed-off-by: Daniel Golle --- block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.25.1