Corretto il ciclo infinito per ricercare la parentesi angolare chiusa.

git-svn-id: svn://10.65.10.50/trunk@3585 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
angelo 1996-09-13 08:08:54 +00:00
parent 81ff1a0cc0
commit afafd85378

View File

@ -234,8 +234,12 @@ void TTextfile::read_line (
// else fill with whitespace // else fill with whitespace
TToken_string id(80, '@'); TToken_string id(80, '@');
sp++; sp++;
while ((ch = *sp++) != '>') bool terminated = FALSE;
id << ch; while ((ch = *sp++) != '>' && !terminated)
if (ch != '\0')
id << ch;
else terminated = TRUE;
if (terminated) break; // Esce dal ciclo se non trova la matching >
// id contains tokenstring separated by @ // id contains tokenstring separated by @
// but with casinations for possible lack of spacing // but with casinations for possible lack of spacing
// add spaces if needed // add spaces if needed