Whamcloud - gitweb
LU-1857 build: fix 'Unbounded source buffer' errors
[fs/lustre-release.git] / lustre / tests / sendfile.c
index feea955..0156425 100644 (file)
@@ -141,6 +141,6 @@ int main(int argc, char *argv[])
         }
         close(sd[1]), close(infd), close(outfd);
 
         }
         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);
 }
         return system(cmd);
 }