Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-1857 build: fix 'Unbounded source buffer' errors
[fs/lustre-release.git]
/
lustre
/
tests
/
sendfile.c
diff --git
a/lustre/tests/sendfile.c
b/lustre/tests/sendfile.c
index
feea955
..
0156425
100644
(file)
--- 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);
}