2002-06-08 H.J. Lu (hjl@gnu.org)
* jcf-path.c (jcf_path_init): Allocate 1 more byte for string.
From-SVN: r54384
+2002-06-08 H.J. Lu (hjl@gnu.org)
+
+ * jcf-path.c (jcf_path_init): Allocate 1 more byte for string.
+
2002-06-04 Tom Tromey <tromey@redhat.com>
* jcf-write.c (perform_relocations): Optmize a goto to a goto.
/* Desperation: use the installed one. */
char *extdirs;
add_entry (&sys_dirs, LIBGCJ_ZIP_FILE, 1);
- extdirs = (char *) alloca (strlen (LIBGCJ_ZIP_FILE));
+ extdirs = (char *) alloca (strlen (LIBGCJ_ZIP_FILE) + 1);
strcpy (extdirs, LIBGCJ_ZIP_FILE);
strcpy (&extdirs[strlen (LIBGCJ_ZIP_FILE)
- strlen ("libgcj-" DEFAULT_TARGET_VERSION ".jar")],