diff options
author | Daniel Stenberg <daniel@haxx.se> | 2007-03-15 22:05:01 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2007-03-15 22:05:01 +0000 |
commit | b169aa2992fddc57cc91ef71d3105bdf83eeb77c (patch) | |
tree | 392b4451ae00e37bc67b296e00e10424a5c9306f /src/urlglob.c | |
parent | 9189ac1141de4c9f8d61fadfb1a435b0b9436d18 (diff) | |
download | curl-b169aa2992fddc57cc91ef71d3105bdf83eeb77c.tar.gz |
- Nick made the curl tool accept globbing ranges that only is one number, i.e
you can now use [1-1] without curl complaining.
Diffstat (limited to 'src/urlglob.c')
-rw-r--r-- | src/urlglob.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |