Browse Source

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.
master
Hannu Nyman 10 years ago
committed by Rich Felker
parent
commit
8ca27ac4bf
  1. 2
      src/time/__tz.c

2
src/time/__tz.c

@ -84,7 +84,7 @@ static void getname(char *d, const char **p)
int i;
if (**p == '<') {
++*p;
for (i=0; **p!='>' && i<TZNAME_MAX; i++)
for (i=0; (*p)[i]!='>' && i<TZNAME_MAX; i++)
d[i] = (*p)[i];
++*p;
} else {

Loading…
Cancel
Save