Fix typo in MakeLegalLEFSyntax

In MakeLegalLEFSyntax we step through the badLEFchars string
but instead of looking for the NULL terminator, we instead
look for a NULL pointer.
This commit is contained in:
Anton Blanchard 2022-01-07 20:37:00 +11:00 committed by Anton Blanchard
parent f89d52dbcc
commit a5614e0d97
1 changed files with 1 additions and 1 deletions

View File

@ -945,7 +945,7 @@ MakeLegalLEFSyntax(text)
rstr = StrDup((char **)NULL, text);
for (cptr = rstr; *cptr != '\0'; cptr++)
for (bptr = badLEFchars; bptr != '\0'; bptr++)
for (bptr = badLEFchars; *bptr != '\0'; bptr++)
if (*cptr == *bptr)
{
*cptr = '_';