Commit 3ab1c7ce authored by Paul Eggert's avatar Paul Eggert
Browse files

* editfns.c (Fformat): Likewise.

parent bbf47d44
......@@ -4,6 +4,7 @@
and to avoid potential problems with integer overflow.
* chartab.c (sub_char_table_set_range, char_table_set_range): Likewise.
* casetab.c (set_identity, shuffle): Likewise.
* editfns.c (Fformat): Likewise.
* xmenu.c (set_frame_menubar): Allocate smaller local vectors.
This also lets GCC 4.6.0 generate slightly better loop code.
......
......@@ -3674,7 +3674,7 @@ usage: (format STRING &rest OBJECTS) */)
if (!info)
info = (struct info *) alloca (nbytes);
memset (info, 0, nbytes);
for (i = 0; i <= nargs; i++)
for (i = 0; i < nargs + 1; i++)
info[i].start = -1;
if (!discarded)
SAFE_ALLOCA (discarded, char *, SBYTES (args[0]));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment