mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-20 17:53:02 +00:00
* src/output.c (output_skeleton): Be sure to allocate enough room
for `/' _and_ for `0' in full_skeleton.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2002-05-28 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
|
* src/output.c (output_skeleton): Be sure to allocate enough room
|
||||||
|
for `/' _and_ for `\0' in full_skeleton.
|
||||||
|
|
||||||
2002-05-28 Akim Demaille <akim@epita.fr>
|
2002-05-28 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
* data/bison.c++: Catch up with bison.simple:
|
* data/bison.c++: Catch up with bison.simple:
|
||||||
|
|||||||
@@ -1002,7 +1002,7 @@ output_skeleton (void)
|
|||||||
if (!bison_pkgdatadir)
|
if (!bison_pkgdatadir)
|
||||||
bison_pkgdatadir = PKGDATADIR;
|
bison_pkgdatadir = PKGDATADIR;
|
||||||
pkg_data_len = strlen (bison_pkgdatadir);
|
pkg_data_len = strlen (bison_pkgdatadir);
|
||||||
full_skeleton = XMALLOC (char, pkg_data_len + strlen (skeleton) + 1);
|
full_skeleton = XMALLOC (char, pkg_data_len + strlen (skeleton) + 2);
|
||||||
if (bison_pkgdatadir[pkg_data_len-1] == '/')
|
if (bison_pkgdatadir[pkg_data_len-1] == '/')
|
||||||
sprintf (full_skeleton, "%s%s", bison_pkgdatadir, skeleton);
|
sprintf (full_skeleton, "%s%s", bison_pkgdatadir, skeleton);
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user