summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/image.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/image.el b/lisp/image.el
index f08db3879b1..f7ab77379dc 100644
--- a/lisp/image.el
+++ b/lisp/image.el
@@ -64,7 +64,7 @@ a non-nil value, TYPE is the image's type ")
(when (and (>= code #xe0) (<= code #xef))
;; APP0 LEN1 LEN2 "JFIF\0"
(throw 'jfif
- (string-match "JFIF" (substring data i nbytes))))
+ (string-match "JFIF" (substring data i (+ i nbytes)))))
(setq i (+ i 1 nbytes))))))))