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
- landing of b_hd_cleanup_merge to HEAD.
[fs/lustre-release.git]
/
lustre
/
utils
/
liblustreapi.c
diff --git
a/lustre/utils/liblustreapi.c
b/lustre/utils/liblustreapi.c
index
bb563ca
..
f8e3c4e
100644
(file)
--- a/
lustre/utils/liblustreapi.c
+++ b/
lustre/utils/liblustreapi.c
@@
-373,7
+373,7
@@
int llapi_file_get_stripe(char *path, struct lov_user_md *lum)
if (dname == NULL)
return ENOMEM;
strncpy(dname, path, fname - path);
- dname[fname - path
+ 1
] = '\0';
+ dname[fname - path] = '\0';
fname++;
}