mirror of
https://github.com/fluencelabs/musl
synced 2025-04-25 07:12:15 +00:00
fix parsing of quoted time zone names
Fix parsing of the < > quoted time zone names. Compare the correct character instead of repeatedly comparing the first character.
This commit is contained in:
parent
7352b59d68
commit
8ca27ac4bf
@ -84,7 +84,7 @@ static void getname(char *d, const char **p)
|
|||||||
int i;
|
int i;
|
||||||
if (**p == '<') {
|
if (**p == '<') {
|
||||||
++*p;
|
++*p;
|
||||||
for (i=0; **p!='>' && i<TZNAME_MAX; i++)
|
for (i=0; (*p)[i]!='>' && i<TZNAME_MAX; i++)
|
||||||
d[i] = (*p)[i];
|
d[i] = (*p)[i];
|
||||||
++*p;
|
++*p;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user