From 3c8111fcc5b85d6d19aa6eabe0ae81b8b3fd94ba Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Tue, 30 Mar 2004 06:16:29 +0000 Subject: [PATCH] (Fformat): Fix initialization of the array info. --- src/ChangeLog | 4 ++++ src/editfns.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index a2952e39cea..4caaa562ee4 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2004-03-30 Kenichi Handa + + * editfns.c (Fformat): Fix initialization of the array info. + 2004-03-30 Kim F. Storm * xterm.c (x_mouse_click_focus_ignore_position): New var. diff --git a/src/editfns.c b/src/editfns.c index df183155c4b..ce075f2696c 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -3280,7 +3280,7 @@ usage: (format STRING &rest OBJECTS) */) int i; info = (struct info *) alloca (nbytes); bzero (info, nbytes); - for (i = 0; i <= nargs; i++) + for (i = 0; i < nargs; i++) info[i].start = -1; discarded = (char *) alloca (SBYTES (args[0])); bzero (discarded, SBYTES (args[0])); -- 2.39.5