From 7b223a3a21d95b17d6c1a90af091b132c1a755fa Mon Sep 17 00:00:00 2001 From: Emil Lerner Date: Wed, 25 Mar 2015 07:43:04 +0300 Subject: 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]') --- src/tool_urlglob.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 { -- cgit v1.2.3