aboutsummaryrefslogtreecommitdiffstats
path: root/uemis-downloader.c
diff options
context:
space:
mode:
Diffstat (limited to 'uemis-downloader.c')
-rw-r--r--uemis-downloader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uemis-downloader.c b/uemis-downloader.c
index b1d977d41..2eaa18ca9 100644
--- a/uemis-downloader.c
+++ b/uemis-downloader.c
@@ -266,7 +266,7 @@ static char *next_segment(char *buf, int *offset, int size)
while (!done) {
if (i < size) {
- if (buf[i] == '\\' && i < size - 1 &&
+ if (i < size - 1 && buf[i] == '\\' &&
(buf[i+1] == '\\' || buf[i+1] == '{'))
memcpy(buf + i, buf + i + 1, size - i - 1);
else if (buf[i] == '{')