diff options
author | H.J. Lu <hjl@gnu.org> | 2002-06-08 16:34:39 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gnu.org> | 2002-06-08 16:34:39 +0000 |
commit | 159dcbd14fc3f62aba9da947e86f8dfc9ed5f329 (patch) | |
tree | d839c8487cf59d908a49b9dfadce5982f84bce1e /gcc/java/jcf-path.c | |
parent | 0eb7035c631131a1ba9461ed198eee4410e4467d (diff) |
2002-06-08 H.J. Lu (hjl@gnu.org)
* jcf-path.c (jcf_path_init): Allocate 1 more byte for string.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@54384 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/jcf-path.c')
-rw-r--r-- | gcc/java/jcf-path.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/java/jcf-path.c b/gcc/java/jcf-path.c index a87703e5ac0..b68a538f45b 100644 --- a/gcc/java/jcf-path.c +++ b/gcc/java/jcf-path.c @@ -305,7 +305,7 @@ jcf_path_init () /* 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")], |