From: Philipp Stephani Date: Sat, 3 Jun 2017 09:42:07 +0000 (+0200) Subject: ; Fix off-by-one error X-Git-Tag: emacs-26.0.90~521^2~175 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e3b7eeade4753af984a280775c593ef44ae3edb4;p=emacs.git ; Fix off-by-one error --- diff --git a/src/editfns.c b/src/editfns.c index 1ce5e8ca6f0..56aa8ce1a72 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -4747,7 +4747,7 @@ styled_format (ptrdiff_t nargs, Lisp_Object *args, bool message) /* Add text properties from arguments. */ if (arg_intervals) - for (ptrdiff_t i = 1; i < num_percent; i++) + for (ptrdiff_t i = 1; i <= num_percent; i++) if (info[i].intervals) { len = make_number (SCHARS (info[i].argument));