aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/urlglob.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/urlglob.c b/src/urlglob.c
index 214c5c984..4dbd2ba2c 100644
--- a/src/urlglob.c
+++ b/src/urlglob.c
@@ -422,7 +422,8 @@ char *glob_next_url(URLGlob *glob)
}
break;
case UPTCharRange:
- pat->content.CharRange.ptr_c += (char)(pat->content.CharRange.step);
+ pat->content.CharRange.ptr_c = (char)(pat->content.CharRange.step +
+ (int)((unsigned char)pat->content.CharRange.ptr_c));
if (pat->content.CharRange.ptr_c > pat->content.CharRange.max_c) {
pat->content.CharRange.ptr_c = pat->content.CharRange.min_c;
carry = TRUE;