From: Akim Demaille Date: Mon, 10 Dec 2001 09:06:13 +0000 (+0000) Subject: * src/output.c (output, prepare): Make sure the values of the X-Git-Tag: before-m4-back-end~173 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/5449dd0f25f584ec596f165cb6004e1b4d092f10 * src/output.c (output, prepare): Make sure the values of the muscles `action' and `prologue' are 0-terminated. --- diff --git a/ChangeLog b/ChangeLog index fc782b7b..b98d47fd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-12-10 Akim Demaille + + * src/output.c (output, prepare): Make sure the values of the + muscles `action' and `prologue' are 0-terminated. + 2001-12-10 Akim Demaille Clean up GCC warnings. diff --git a/src/output.c b/src/output.c index 4a4f8bd3..dbcfbf01 100644 --- a/src/output.c +++ b/src/output.c @@ -1037,6 +1037,7 @@ prepare (void) MUSCLE_INSERT_INT ("locations-flag", locations_flag); /* We need to save the actions in the muscle %%action. */ + obstack_1grow (&action_obstack, 0); muscle_insert ("action", obstack_finish (&action_obstack)); if (spec_name_prefix) @@ -1067,6 +1068,7 @@ output (void) #endif prepare (); /* Copy definitions in directive. */ + obstack_1grow (&attrs_obstack, 0); muscle_insert ("prologue", obstack_finish (&attrs_obstack)); output_master_parser (); diff --git a/src/system.h b/src/system.h index 70605c49..ff05bc82 100644 --- a/src/system.h +++ b/src/system.h @@ -1,5 +1,5 @@ /* system-dependent definitions for Bison. - Copyright 2000 Free Software Foundation, Inc. + Copyright 2000, 2001 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by