From b169aa2992fddc57cc91ef71d3105bdf83eeb77c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 15 Mar 2007 22:05:01 +0000 Subject: - Nick made the curl tool accept globbing ranges that only is one number, i.e you can now use [1-1] without curl complaining. --- src/urlglob.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/urlglob.c') diff --git a/src/urlglob.c b/src/urlglob.c index 4dbd2ba2c..97b73f28a 100644 --- a/src/urlglob.c +++ b/src/urlglob.c @@ -214,7 +214,7 @@ static GlobCode glob_range(URLGlob *glob, char *pattern, rc = sscanf(pattern, "%d-%d%c%d%c", &min_n, &max_n, &sep, &step, &sep2); - if ((rc < 2) || (min_n >= max_n)) { + if ((rc < 2) || (min_n > max_n)) { /* the pattern is not well-formed */ snprintf(glob->errormsg, sizeof(glob->errormsg), "error: bad range specification after pos %d\n", pos); -- cgit v1.2.3