Whamcloud - gitweb
LU-3963 libcfs: convert md[d/t]/mg[c/s] to linux atomic primitives
[fs/lustre-release.git] / lustre / tests / openfilleddirunlink.c
index af61782..b601185 100644 (file)
@@ -72,7 +72,7 @@ int main(int argc, char **argv)
                 exit(1);
         }
 
-        sprintf(fname, "%s/0", dname1);
+       snprintf(fname, sizeof(fname), "%s/0", dname1);
         fprintf(stderr, "creating file %s\n", fname);
         fd = creat(fname, 0666);
         if (fd < 0) {