[PATCH] %Z Fix [PATCH v5]
Stanley Lancaster
lancasterharp@gmail.com
Mon Jul 31 13:56:22 GMT 2023
---
time/strptime_l.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/time/strptime_l.c b/time/strptime_l.c
index 2382defc92..1b84065c19 100644
--- a/time/strptime_l.c
+++ b/time/strptime_l.c
@@ -776,7 +776,10 @@ __strptime_internal (const char *rp, const char *fmt, struct tm *tmp,
/* Read timezone but perform no conversion. */
/* we recognize the format [-+a-zA-Z0-9]{3,} */
const char* start_rp = rp;
- while ((*rp >= 'A' && *rp <= 'Z') || (*rp >= 'a' && *rp <= 'z') || (*rp >= '0' && *rp <= '9'))
+
+ while ((*rp >= 'A' && *rp <= 'Z') ||
+ (*rp >= 'a' && *rp <= 'z') ||
+ (*rp >= '0' && *rp <= '9'))
rp++;
if (start_rp+3 < rp)
return NULL;
--
2.39.3
More information about the Libc-alpha
mailing list