From: Kenichi Handa Date: Tue, 30 Mar 2004 06:16:29 +0000 (+0000) Subject: (Fformat): Fix initialization of the array info. X-Git-Tag: ttn-vms-21-2-B4~7019 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3c8111fcc5b85d6d19aa6eabe0ae81b8b3fd94ba;p=emacs.git (Fformat): Fix initialization of the array info. --- 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]));