diff options
Diffstat (limited to 'main/musl/0028-fix-parsing-of-quoted-time-zone-names.patch')
-rw-r--r-- | main/musl/0028-fix-parsing-of-quoted-time-zone-names.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/main/musl/0028-fix-parsing-of-quoted-time-zone-names.patch b/main/musl/0028-fix-parsing-of-quoted-time-zone-names.patch new file mode 100644 index 0000000000..ac99f08db8 --- /dev/null +++ b/main/musl/0028-fix-parsing-of-quoted-time-zone-names.patch @@ -0,0 +1,27 @@ +From 8ca27ac4bfe73bff785d0c26c1de0da92b55e5c6 Mon Sep 17 00:00:00 2001 +From: Hannu Nyman <hannu.nyman@iki.fi> +Date: Mon, 24 Oct 2016 13:12:24 +0300 +Subject: [PATCH] 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. +--- + src/time/__tz.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +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 { +-- +2.11.0 + |