mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Use strspn here.
This commit is contained in:
parent
30696bf981
commit
48950bbc16
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…
Add table
Reference in a new issue