X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fsendfile.c;h=54aceb622e9de0b4744f7d07b532cce7c7409e1b;hb=6cb13da5156ed7f076d28a3a6cfbed39cdc71e19;hp=feea9558c60819b60394c7418c943c6742e25365;hpb=f715e4e2987231a4eea51d007ecb46b5ea16c142;p=fs%2Flustre-release.git diff --git a/lustre/tests/sendfile.c b/lustre/tests/sendfile.c index feea955..54aceb6 100644 --- a/lustre/tests/sendfile.c +++ b/lustre/tests/sendfile.c @@ -15,11 +15,7 @@ * * You should have received a copy of the GNU General Public License * version 2 along with this program; If not, see - * http://www.sun.com/software/products/lustre/docs/GPLv2.pdf - * - * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, - * CA 95054 USA or visit www.sun.com if you need additional information or - * have any questions. + * http://www.gnu.org/licenses/gpl-2.0.html * * GPL HEADER END */ @@ -36,6 +32,8 @@ #include #include #include +#include +#include #include #include #include @@ -141,6 +139,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); }