block: don't truncate mountpoint path
[project/fstools.git] / block.c
diff --git a/block.c b/block.c
index 85c5b58..a06e200 100644 (file)
--- 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);