X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8d000a773b5ebcd411b28c31de68eeddf804e66b..4b8be43e2c03939bc780b6112d841d8b839a79bb:/tools/sg_unit_extractor.pl diff --git a/tools/sg_unit_extractor.pl b/tools/sg_unit_extractor.pl index 9cbc2f5aa5..e626e3d096 100755 --- a/tools/sg_unit_extractor.pl +++ b/tools/sg_unit_extractor.pl @@ -5,10 +5,6 @@ # This program is free software; you can redistribute it and/or modify it # under the terms of the license (GNU LGPL) which comes with this package. - - -use strict; - use strict; use Getopt::Long qw(GetOptions); @@ -153,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++;