mirror of
https://github.com/curl/curl.git
synced 2026-07-28 22:33:06 +03:00
test Icing's take
This commit is contained in:
parent
1a8a481120
commit
d5a48f0595
1 changed files with 1 additions and 1 deletions
|
|
@ -572,7 +572,7 @@ static const char *outtime(const char *ptr, /* %time{ ... */
|
|||
if(timestr) {
|
||||
curl_off_t val;
|
||||
curlx_str_number(×tr, &val, TIME_T_MAX);
|
||||
cnow.tv_sec = (time_t)val;
|
||||
cnow.tv_sec = (val < TIME_T_MAX) ? (time_t)val : TIME_T_MAX;
|
||||
cnow.tv_usec = (unsigned int)(val % 1000000);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue