Revised the previous commit after discussion with Darryl Miles on

the possible ways that other textio routines could affect the
string contents.
This commit is contained in:
Tim Edwards 2024-10-10 17:48:59 -04:00
parent 0864f8b728
commit b7942cffe6
1 changed files with 8 additions and 1 deletions

View File

@ -826,7 +826,14 @@ DRCTechLine(sectionName, argc, argv)
if (DRCStyleList == NULL)
{
char *locargv[2] = {"style", "default"};
char bufargv[2][10];
char *locargv[2];
strcpy(bufargv[0], "style");
strcpy(bufargv[1], "default");
locargv[0] = bufargv[0];
locargv[1] = bufargv[1];
if (DRCTechLine(sectionName, 2, locargv) == FALSE)
return FALSE;