curl tool: allow negative numbers as option values
authorAlessandro Ghedini <al3xbio@gmail.com>
Sun, 12 Feb 2012 13:49:32 +0000 (14:49 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 13 Feb 2012 18:58:23 +0000 (19:58 +0100)
commite71ac0c6fad6643ad99b5cf6f1d566dfb79990d2
treea4355609e84b3ce6a7e7621684bf3e9c75540a82
parent7ed25fcc5c89c135bac3120b5efd820649dc9083
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.
src/tool_paramhlp.c