projects
/
oweals
/
ubox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75b17da
)
block: enlarge uuid buffer when writing extroot tag file, some uuids exceed 32 byte...
author
Jo-Philipp Wich
<jow@openwrt.org>
Wed, 31 Jul 2013 10:42:42 +0000
(12:42 +0200)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Wed, 31 Jul 2013 10:42:42 +0000
(12:42 +0200)
block.c
patch
|
blob
|
history
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)) {