Checks
Commit Message
---
time/strptime_l.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
Comments
Ignore this. I don't know how to use git send-email.
Everyone's patience while I'm learning the ropes in appreciated
Thank you,
Stanley Lancaster
On Mon, Jul 31, 2023 at 8:56 AM Stanley Lancaster <lancasterharp@gmail.com>
wrote:
> ---
> 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
>
>
@@ -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;