X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3cf8dfbfab4595b3e7ae85d3cd89ce9dbcdd7a24..ae0e5607956f1b19a4605d297bc6d51e5e18f845:/tools/sg_unit_extractor.pl diff --git a/tools/sg_unit_extractor.pl b/tools/sg_unit_extractor.pl index 2dee83a059..e626e3d096 100755 --- a/tools/sg_unit_extractor.pl +++ b/tools/sg_unit_extractor.pl @@ -149,10 +149,10 @@ int main(int argc, char *argv[]) { if (!strncmp(argv[i],\"--tests=\",strlen(\"--tests=\"))) { char *p=strchr(argv[i],'=')+1; if (selection[0] == '\\0') { - strcpy(selection, p); + strncpy(selection,p,1024); } else { - strcat(selection, \",\"); - strcat(selection, p); + strncat(selection, \",\",1); + strncat(selection, p, 1023); } } else if (!strcmp(argv[i], \"--verbose\")) { verbosity++;