Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-1856 build: fix 'out-of-bounds write' errors
[fs/lustre-release.git]
/
lustre
/
lov
/
lov_pack.c
diff --git
a/lustre/lov/lov_pack.c
b/lustre/lov/lov_pack.c
index
a44a723
..
8553395
100644
(file)
--- a/
lustre/lov/lov_pack.c
+++ b/
lustre/lov/lov_pack.c
@@
-290,7
+290,7
@@
static int lov_verify_lmm(void *lmm, int lmm_bytes, __u16 *stripe_count)
for (i = 0; i < lmm_bytes; i++)
sprintf(buffer+2*i, "%.2X", ((char *)lmm)[i]);
-
buffer[sz
] = '\0';
+
buffer[sz - 1
] = '\0';
CERROR("%s\n", buffer);
OBD_FREE_LARGE(buffer, sz);
}