mirror of
https://github.com/curl/curl.git
synced 2026-07-24 13:17:15 +03:00
fixup: str2double bug
This commit is contained in:
parent
f1c26efcbf
commit
8661a0aacc
1 changed files with 1 additions and 1 deletions
|
|
@ -218,7 +218,7 @@ static ParameterError str2double(double *val, const char *str, long max)
|
|||
num = strtod(str, &endptr);
|
||||
if(errno == ERANGE)
|
||||
return PARAM_NUMBER_TOO_LARGE;
|
||||
if((long)val > max) {
|
||||
if((long)num > max) {
|
||||
/* too large */
|
||||
return PARAM_NUMBER_TOO_LARGE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue