From: Gerd Moellmann Date: Mon, 13 Aug 2001 10:16:16 +0000 (+0000) Subject: (image-jpeg-p): Fix call of substring. X-Git-Tag: emacs-pretest-21.0.105~202 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=26d0c82c1ae6fd8c0b80ff03031db26503d71c64;p=emacs.git (image-jpeg-p): Fix call of substring. --- 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))))))))