X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a5945452ef5b1114fd7c2fab0e865d776775c34d..88d5a2b9d5425b7a32febc2431315d15597d07b5:/tools/sg_unit_extractor.pl diff --git a/tools/sg_unit_extractor.pl b/tools/sg_unit_extractor.pl index 2dee83a059..4c0de32889 100755 --- a/tools/sg_unit_extractor.pl +++ b/tools/sg_unit_extractor.pl @@ -151,8 +151,8 @@ int main(int argc, char *argv[]) { if (selection[0] == '\\0') { strcpy(selection, p); } else { - strcat(selection, \",\"); - strcat(selection, p); + strncat(selection, \",\",1); + strncat(selection, p, 1024); } } else if (!strcmp(argv[i], \"--verbose\")) { verbosity++;