block: enlarge uuid buffer when writing extroot tag file, some uuids exceed 32 byte...
[project/ubox.git] / block.c
diff --git a/block.c b/block.c
index 194eb4a17c7ac85353b9e8a19d2ddc2f9fb6b0c1..4397e1e717baeae851a2ec99985ee19e82e38dd1 100644 (file)
--- a/block.c
+++ b/block.c
@@ -664,7 +664,7 @@ static int check_extroot(char *path)
                        struct stat s;
                        FILE *fp = NULL;
                        char tag[64];
-                       char uuid[32] = { 0 };
+                       char uuid[64] = { 0 };
 
                        snprintf(tag, sizeof(tag), "%s/etc/.extroot-uuid", path);
                        if (stat(tag, &s)) {