mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
Use Curl_strtoll() if needed. This is not a library call, this is just the
same code as the library uses for its internal function. Thus the captical C in the beginning.
This commit is contained in:
parent
6e29f5d1df
commit
4227407438
@ -1010,8 +1010,8 @@ static int str2offset(curl_off_t *val, char *str)
|
|||||||
#ifdef HAVE_STRTOLL
|
#ifdef HAVE_STRTOLL
|
||||||
*val = strtoll(str, NULL, 0);
|
*val = strtoll(str, NULL, 0);
|
||||||
#else
|
#else
|
||||||
/* TODO: Handle strtoll stuff...sigh... */
|
/* this is a duplicate of the function that is also used in libcurl */
|
||||||
#error "lack of strtoll() needs fixing"
|
*val = Curl_strtoll(str, NULL, 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if ((*val == LLONG_MAX || *val == LLONG_MIN) && errno == ERANGE)
|
if ((*val == LLONG_MAX || *val == LLONG_MIN) && errno == ERANGE)
|
||||||
@ -2068,7 +2068,7 @@ static int parseconfig(const char *filename,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* pass spaces and separator(s) */
|
/* pass spaces and separator(s) */
|
||||||
while(isspace((int)*line) || isseparator(*line))
|
while(*line && (isspace((int)*line) || isseparator(*line)))
|
||||||
line++;
|
line++;
|
||||||
|
|
||||||
/* the parameter starts here (unless quoted) */
|
/* the parameter starts here (unless quoted) */
|
||||||
|
Loading…
Reference in New Issue
Block a user