X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fopenfilleddirunlink.c;h=b60118582d37ba06bb27ee87932ef9577e3dd5b6;hb=41b9a48c344fb0822b2c956162b5d262f267b3a1;hp=af61782a12110754dd8bf64797d68a9734795ae8;hpb=e3a7c58aebafce40323db54bf6056029e5af4a70;p=fs%2Flustre-release.git diff --git a/lustre/tests/openfilleddirunlink.c b/lustre/tests/openfilleddirunlink.c index af61782..b601185 100644 --- a/lustre/tests/openfilleddirunlink.c +++ b/lustre/tests/openfilleddirunlink.c @@ -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) {