mirror of
https://github.com/curl/curl.git
synced 2025-09-19 18:42:42 +03:00
fixup: str2double bug
This commit is contained in:
parent
f1c26efcbf
commit
8661a0aacc
|
@ -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…
Reference in New Issue
Block a user