bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fix PH's full_path patch


From: Akim Demaille
Subject: Fix PH's full_path patch
Date: 28 May 2002 12:02:46 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Honest Recruiter)

Index: ChangeLog
from  Akim Demaille  <address@hidden>

        * src/output.c (output_skeleton): Be sure to allocate enough room
        for `/' _and_ for `\0' in full_skeleton.

Index: src/output.c
===================================================================
RCS file: /cvsroot/bison/bison/src/output.c,v
retrieving revision 1.156
diff -u -u -r1.156 output.c
--- src/output.c 27 May 2002 22:33:54 -0000 1.156
+++ src/output.c 28 May 2002 10:01:57 -0000
@@ -1002,7 +1002,7 @@
     if (!bison_pkgdatadir)
       bison_pkgdatadir = 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] == '/')
       sprintf (full_skeleton, "%s%s", bison_pkgdatadir, skeleton);
     else



reply via email to

[Prev in Thread] Current Thread [Next in Thread]