X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4a7c1b616954da0364587049be1741592bd2eb5a..a5945452ef5b1114fd7c2fab0e865d776775c34d:/examples/smpi/NAS/ep.c diff --git a/examples/smpi/NAS/ep.c b/examples/smpi/NAS/ep.c index 81707f2d46..60e6908ad3 100644 --- a/examples/smpi/NAS/ep.c +++ b/examples/smpi/NAS/ep.c @@ -62,7 +62,7 @@ int main(int argc, char **argv) { * string (for printing). Have to strip off the decimal point put in there by the floating point print statement * (internal file) */ fprintf(stdout," NAS Parallel Benchmarks 3.2 -- EP Benchmark"); - sprintf(size,"%lu",(unsigned long)pow(2,m+1)); + snprintf(size,500,"%lu",(unsigned long)pow(2,m+1)); //size = size.replace('.', ' '); fprintf(stdout," Number of random numbers generated: %s\n",size); fprintf(stdout," Number of active processes: %d\n",no_nodes);