Whamcloud - gitweb
LU-12147 utils: statone doesn't place \0
[fs/lustre-release.git] / lustre / tests / statone.c
index 0f11d5d..42d9ec3 100644 (file)
@@ -59,6 +59,7 @@ int main(int argc, char **argv)
     } else {
         strncpy(parent, base, t - base);
         offset = t - base - 1;
+       parent[t - base] = 0;
     }
 
     fd = open(parent, O_RDONLY);