From 26d0c82c1ae6fd8c0b80ff03031db26503d71c64 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Mon, 13 Aug 2001 10:16:16 +0000 Subject: [PATCH] (image-jpeg-p): Fix call of substring. --- lisp/image.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)))))))) -- 2.39.2