X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/88d5a2b9d5425b7a32febc2431315d15597d07b5..0efe3d607e77e439af8019c721b20a18b1787884:/tools/sg_unit_extractor.pl diff --git a/tools/sg_unit_extractor.pl b/tools/sg_unit_extractor.pl index 4c0de32889..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 { strncat(selection, \",\",1); - strncat(selection, p, 1024); + strncat(selection, p, 1023); } } else if (!strcmp(argv[i], \"--verbose\")) { verbosity++;