From e3b7eeade4753af984a280775c593ef44ae3edb4 Mon Sep 17 00:00:00 2001 From: Philipp Stephani Date: Sat, 3 Jun 2017 11:42:07 +0200 Subject: [PATCH] ; Fix off-by-one error --- src/editfns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.39.2