From 436b4815ed0f616fba06a6ff3dfb44fade8b0321 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 18 Jun 2011 09:07:41 -0700 Subject: [PATCH] * fns.c (Ffillarray): Use same idx as rest of code here. --- src/fns.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/fns.c b/src/fns.c index 702ecbd7c63..32d96fbc94e 100644 --- a/src/fns.c +++ b/src/fns.c @@ -2169,13 +2169,12 @@ ARRAY is a vector, string, char-table, or bool-vector. */) unsigned char str[MAX_MULTIBYTE_LENGTH]; int len = CHAR_STRING (charval, str); EMACS_INT size_byte = SBYTES (array); - EMACS_INT i; if (INT_MULTIPLY_OVERFLOW (SCHARS (array), len) || SCHARS (array) * len != size_byte) error ("Attempt to change byte length of a string"); - for (i = 0; i < size_byte; i++) - *p++ = str[i % len]; + for (idx = 0; idx < size_byte; idx++) + *p++ = str[idx % len]; } else for (idx = 0; idx < size; idx++) -- 2.39.2