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:
parent
6d004fea41
commit
26d0c82c1a
@ -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))))))))
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user