diff options
author | Emil Lerner <neex.emil@gmail.com> | 2015-03-25 07:43:04 +0300 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-03-25 11:29:46 +0100 |
commit | 7b223a3a21d95b17d6c1a90af091b132c1a755fa (patch) | |
tree | e585509c3df097e76a1013ba0153d88b8345898d /src | |
parent | 5b58bface3889c13f4f4aeb5a053caa6b747374c (diff) |
globbing: fix step parsing for character globbing ranges
The glob_range function used wrong offset (3 instead of 4) for parsing
integer step inside character range specification, which led to 'bad
range' error when using character ranges with explicitly specified step
(such as '[a-z:2]')
Diffstat (limited to 'src')
-rw-r--r-- | src/tool_urlglob.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool_urlglob.c b/src/tool_urlglob.c index 912166708..0f889eb34 100644 --- a/src/tool_urlglob.c +++ b/src/tool_urlglob.c @@ -196,7 +196,7 @@ static CURLcode glob_range(URLGlob *glob, char **patternp, char *endp; unsigned long lstep; errno = 0; - lstep = strtoul(&pattern[3], &endp, 10); + lstep = strtoul(&pattern[4], &endp, 10); if(errno || (*endp != ']')) step = -1; else { |