block: enlarge uuid buffer when writing extroot tag file, some uuids exceed 32 byte...
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 31 Jul 2013 10:42:42 +0000 (12:42 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 31 Jul 2013 10:42:42 +0000 (12:42 +0200)
block.c

diff --git a/block.c b/block.c
index 194eb4a..4397e1e 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)) {