Commit 26d0c82c authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(image-jpeg-p): Fix call of substring.

parent 6d004fea
......@@ -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))))))))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment