1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-25 02:29:52 +00:00

Fixed a problem with SB_GetSym.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4365 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz 2009-10-14 13:03:47 +00:00
parent ed2767e65f
commit 62fdd55fee

View File

@ -185,7 +185,8 @@ int SB_GetSym (StrBuf* B, StrBuf* Ident, const char* SpecialChars)
SB_AppendChar (Ident, C);
SB_Skip (B);
C = SB_Peek (B);
} while (IsIdent (C) || IsDigit (C) || strchr (SpecialChars, C) != 0);
} while (IsIdent (C) || IsDigit (C) ||
(C != '\0' && strchr (SpecialChars, C) != 0));
SB_Terminate (Ident);
return 1;
} else {