mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-24 19:52:08 +00:00
Use strspn here.
This commit is contained in:
parent
773d564d6a
commit
c303b1a435
1 changed files with 4 additions and 13 deletions
|
@ -1579,19 +1579,10 @@ skip_lump:
|
|||
value++;
|
||||
|
||||
// Now skip funny whitespace.
|
||||
for (;;)
|
||||
{
|
||||
char c = value[0];
|
||||
if (c == '\0') // :NOTHING:
|
||||
{
|
||||
brokenline = true;
|
||||
break;
|
||||
}
|
||||
else if (c == ' ' || c == '\t')
|
||||
value++;
|
||||
else
|
||||
break;
|
||||
}
|
||||
if (value[0] == '\0') // :NOTHING:
|
||||
brokenline = true;
|
||||
else
|
||||
value += strspn(value, "\t ");
|
||||
}
|
||||
|
||||
// If the line is valid, copy the text line from the lump data.
|
||||
|
|
Loading…
Reference in a new issue