aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2017-07-28 17:42:27 +0300
committerGreg Kroah-Hartman <[email protected]>2017-08-20 11:08:41 -0700
commit0c1b9970ddd4cc41002321c3877e7f91aacb896d (patch)
treec89c37bdd6e7e6577d729e89dc7517a601db2bd3 /scripts/gdb/linux
parent5e47adb90630c6c1b84623d85751618f704fb89d (diff)
staging: lustre: lustre: Off by two in lmv_fid2path()
We want to concatonate join string one, a '/' character, string two and then a NUL terminator. The destination buffer holds ori_gf->gf_pathlen characters. The strlen() function returns the number of characters not counting the NUL terminator. So we should be adding two extra spaces, one for the foward slash and one for the NUL. Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: John L. Hammond <[email protected]> Reviewed-by: frank zago <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gdb/linux')
0 files changed, 0 insertions, 0 deletions