Whamcloud - gitweb
- landing of b_hd_cleanup_merge to HEAD.
[fs/lustre-release.git] / lustre / utils / liblustreapi.c
index bb563ca..f8e3c4e 100644 (file)
@@ -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++;
         }