From: Christos Zoulas Date: Sun, 20 Jul 2014 14:55:33 +0000 (-0400) Subject: fix debugging string truncation X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=6f387db55e35c8018dcd12daf9ded822a5679c32;p=am-utils-6.2.git fix debugging string truncation --- diff --git a/libamu/mount_fs.c b/libamu/mount_fs.c index 40ab33c3..b5576bdc 100644 --- a/libamu/mount_fs.c +++ b/libamu/mount_fs.c @@ -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));