summaryrefslogtreecommitdiff
path: root/toolchain/musl/patches/400-fix_quoted_timezone.patch
blob: 79afa4a63b3c2836323068ff6e24f5bd5ba42838 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/src/time/__tz.c
+++ b/src/time/__tz.c
@@ -87,7 +87,7 @@
 	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 {