diff options
author | Hannu Nyman <hannu.nyman@iki.fi> | 2016-10-24 13:12:24 +0300 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2016-11-07 11:54:09 -0500 |
commit | 8ca27ac4bfe73bff785d0c26c1de0da92b55e5c6 (patch) | |
tree | d8e7a163eb40ac6c5bbf7819f3f9559070861511 /src/time | |
parent | 7352b59d68aa6d931f9f882b2e0f9de6314d733f (diff) | |
download | musl-8ca27ac4bfe73bff785d0c26c1de0da92b55e5c6.tar.gz musl-8ca27ac4bfe73bff785d0c26c1de0da92b55e5c6.tar.bz2 musl-8ca27ac4bfe73bff785d0c26c1de0da92b55e5c6.tar.xz musl-8ca27ac4bfe73bff785d0c26c1de0da92b55e5c6.zip |
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.
Diffstat (limited to 'src/time')
-rw-r--r-- | src/time/__tz.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/time/__tz.c b/src/time/__tz.c index 8b84b9bd..0e0c4ea2 100644 --- a/src/time/__tz.c +++ b/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 { |