fix debugging string truncation
authorChristos Zoulas <christos@zoulas.com>
Sun, 20 Jul 2014 14:55:33 +0000 (10:55 -0400)
committerChristos Zoulas <christos@zoulas.com>
Sun, 20 Jul 2014 14:55:33 +0000 (10:55 -0400)
libamu/mount_fs.c

index 40ab33c37a3566a884f286a60c8adca1e6c68941..b5576bdc6d14f12eea9de41bf520ea5c97232d3b 100644 (file)
@@ -688,7 +688,7 @@ get_hex_string(u_int len, const char *fhdata)
 
   if (!fhdata || len == 0 || len > 10240)
     return NULL;
-  i = xlen * 4 + 1;
+  i = len * 4 + 1;
   if (xlen < i) {
     buf = xrealloc(buf, i);
     arr = xrealloc(arr, len * sizeof(*arr));