X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Ftests%2Fsendfile.c;h=0156425d9f653f8ed37885cb8d40336856d57c13;hp=feea9558c60819b60394c7418c943c6742e25365;hb=4db3aa0842f2be97aae017d351169e5237223156;hpb=7712ab3fd86e88f7a8e7d6eb9c82492a8b39a61c diff --git a/lustre/tests/sendfile.c b/lustre/tests/sendfile.c index feea955..0156425 100644 --- a/lustre/tests/sendfile.c +++ b/lustre/tests/sendfile.c @@ -141,6 +141,6 @@ int main(int argc, char *argv[]) } close(sd[1]), close(infd), close(outfd); - sprintf(cmd, "cmp %s %s\n", sfile, tfile); + snprintf(cmd, sizeof(cmd), "cmp %s %s\n", sfile, tfile); return system(cmd); }