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++;
|
value++;
|
||||||
|
|
||||||
// Now skip funny whitespace.
|
// Now skip funny whitespace.
|
||||||
for (;;)
|
if (value[0] == '\0') // :NOTHING:
|
||||||
{
|
brokenline = true;
|
||||||
char c = value[0];
|
else
|
||||||
if (c == '\0') // :NOTHING:
|
value += strspn(value, "\t ");
|
||||||
{
|
|
||||||
brokenline = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
else if (c == ' ' || c == '\t')
|
|
||||||
value++;
|
|
||||||
else
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the line is valid, copy the text line from the lump data.
|
// If the line is valid, copy the text line from the lump data.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue