aboutsummaryrefslogtreecommitdiff
path: root/lib/curl_memrchr.c
diff options
context:
space:
mode:
authorAlessandro Ghedini <al3xbio@gmail.com>2012-02-12 14:49:32 +0100
committerDaniel Stenberg <daniel@haxx.se>2012-02-13 19:58:23 +0100
commite71ac0c6fad6643ad99b5cf6f1d566dfb79990d2 (patch)
treea4355609e84b3ce6a7e7621684bf3e9c75540a82 /lib/curl_memrchr.c
parent7ed25fcc5c89c135bac3120b5efd820649dc9083 (diff)
curl tool: allow negative numbers as option values
Fix the str2num() function to not check if the input string starts with a digit, since strtol() supports numbers prepended with '-' (and '+') too. This makes the --max-redirs option work as documented.
Diffstat (limited to 'lib/curl_memrchr.c')
0 files changed, 0 insertions, 0 deletions