wget-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wget2 | Draft: Small fixes (!505)


From: @rockdaboot
Subject: Re: wget2 | Draft: Small fixes (!505)
Date: Sat, 25 Jun 2022 11:59:59 +0000



Tim Rühsen commented on a discussion on libwget/http_parse.c: 
https://gitlab.com/gnuwget/wget2/-/merge_requests/505#note_1005360143

>       int day, mon = 0, year, hour, min, sec, leap_month, leap_year, days;
>       char mname[4] = "";
>  
> -     if (sscanf(s, " %*[a-zA-Z], %02d %3s %4d %2d:%2d:%2d", &day, mname, 
> &year, &hour, &min, &sec) >= 6) {
> +     if (sscanf(s, " %*3[a-zA-Z], %2d %3s %4d %2d:%2d:%2d", &day, mname, 
> &year, &hour, &min, &sec) == 6) {

You still have *3 and *9, please remove the limits.

-- 
Reply to this email directly or view it on GitLab: 
https://gitlab.com/gnuwget/wget2/-/merge_requests/505#note_1005360143
You're receiving this email because of your account on gitlab.com.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]