summaryrefslogtreecommitdiffstats
path: root/contrib/libs/curl/lib/strtoofft.c
diff options
context:
space:
mode:
authorrobot-contrib <[email protected]>2022-12-02 16:18:16 +0300
committerrobot-contrib <[email protected]>2022-12-02 16:18:16 +0300
commit22a73deb46c33ab8539b522286f0fb9b3364f856 (patch)
treeaf3cf69e9e6ebc887a5add5491b2fcebbfdff06a /contrib/libs/curl/lib/strtoofft.c
parent2e7d246d83a0077f08e6fed36594fc2087949502 (diff)
Update contrib/libs/curl to 7.86.0
Diffstat (limited to 'contrib/libs/curl/lib/strtoofft.c')
-rw-r--r--contrib/libs/curl/lib/strtoofft.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/libs/curl/lib/strtoofft.c b/contrib/libs/curl/lib/strtoofft.c
index 30908fdd92f..30deb8c05b2 100644
--- a/contrib/libs/curl/lib/strtoofft.c
+++ b/contrib/libs/curl/lib/strtoofft.c
@@ -87,7 +87,7 @@ static curl_off_t strtooff(const char *nptr, char **endptr, int base)
/* Skip leading whitespace. */
end = (char *)nptr;
- while(ISSPACE(end[0])) {
+ while(ISBLANK(end[0])) {
end++;
}
@@ -222,9 +222,9 @@ CURLofft curlx_strtoofft(const char *str, char **endp, int base,
errno = 0;
*num = 0; /* clear by default */
- while(*str && ISSPACE(*str))
+ while(*str && ISBLANK(*str))
str++;
- if('-' == *str) {
+ if(('-' == *str) || (ISSPACE(*str))) {
if(endp)
*endp = (char *)str; /* didn't actually move */
return CURL_OFFT_INVAL; /* nothing parsed */