1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-27 07:37:33 +00:00

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

This commit is contained in:
Gerd Moellmann 2001-08-13 10:16:16 +00:00
parent 6d004fea41
commit 26d0c82c1a

View File

@ -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))))))))