summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libblkid/src/partitions/partitions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libblkid/src/partitions/partitions.c b/libblkid/src/partitions/partitions.c
index 9a11e84aa..626e11729 100644
--- a/libblkid/src/partitions/partitions.c
+++ b/libblkid/src/partitions/partitions.c
@@ -1368,7 +1368,7 @@ int blkid_partition_gen_uuid(blkid_partition par)
if (!par || !par->tab || !*par->tab->id)
return -1;
- snprintf(par->uuid, sizeof(par->uuid), "%s-%02x",
+ snprintf(par->uuid, sizeof(par->uuid), "%.33s-%02x",
par->tab->id, par->partno);
return 0;
}