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:
parent
81ff1a0cc0
commit
afafd85378
@ -234,8 +234,12 @@ void TTextfile::read_line (
|
||||
// else fill with whitespace
|
||||
TToken_string id(80, '@');
|
||||
sp++;
|
||||
while ((ch = *sp++) != '>')
|
||||
id << ch;
|
||||
bool terminated = FALSE;
|
||||
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 @
|
||||
// but with casinations for possible lack of spacing
|
||||
// add spaces if needed
|
||||
|
Loading…
x
Reference in New Issue
Block a user