X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d0911ae495d53f6f243023e092daf7a777234e12..636461fcc168ebfae791028c0826a3e03947d906:/teshsuite/msg/concurrent_rw/concurrent_rw.c diff --git a/teshsuite/msg/concurrent_rw/concurrent_rw.c b/teshsuite/msg/concurrent_rw/concurrent_rw.c index 2024745368..9231629261 100644 --- a/teshsuite/msg/concurrent_rw/concurrent_rw.c +++ b/teshsuite/msg/concurrent_rw/concurrent_rw.c @@ -15,7 +15,7 @@ static int host(int argc, char *argv[]) { char name[2048]; int id = MSG_process_self_PID(); - sprintf(name,"%s%i", FILENAME1, id); + snprintf(name,2048,"%s%i", FILENAME1, id); msg_file_t file = MSG_file_open(name, NULL); XBT_INFO("process %d is writing!", id); MSG_file_write(file, 3000000);