X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Flmv%2Flmv_obd.c;h=904a7e0e54ad83eef4dc2702f49dfc8000641ac2;hp=68ed6688e4ff185ba6bb868b048f1a2542ff7cd7;hb=3f86915bdfe506ac9070f091b5a1c52ed134f5d2;hpb=a9e0b853aabc1c817e3f4c250714ed86bb76a1ee diff --git a/lustre/lmv/lmv_obd.c b/lustre/lmv/lmv_obd.c index 68ed668..904a7e0 100644 --- a/lustre/lmv/lmv_obd.c +++ b/lustre/lmv/lmv_obd.c @@ -683,8 +683,8 @@ repeat_fid2path: char *ptr; ori_gf = (struct getinfo_fid2path *)karg; - if (strlen(ori_gf->gf_u.gf_path) + - strlen(gf->gf_u.gf_path) > ori_gf->gf_pathlen) + if (strlen(ori_gf->gf_u.gf_path) + 1 + + strlen(gf->gf_u.gf_path) + 1 > ori_gf->gf_pathlen) GOTO(out_fid2path, rc = -EOVERFLOW); ptr = ori_gf->gf_u.gf_path;