diff options
| author | aph <aph@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-03-12 07:52:58 +0000 | 
|---|---|---|
| committer | aph <aph@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-03-12 07:52:58 +0000 | 
| commit | ce285177bcdb1ef8c4205dbc29cc5be54e11601b (patch) | |
| tree | 657dc5ed45a2475c52dc4504a5243ca92fb15885 /gcc/java/jcf-path.c | |
| parent | 6693d8cc492a9e10359264f5e992aa5f93ba8aa8 (diff) | |
| download | ppe42-gcc-ce285177bcdb1ef8c4205dbc29cc5be54e11601b.tar.gz ppe42-gcc-ce285177bcdb1ef8c4205dbc29cc5be54e11601b.zip  | |
1999-03-12  Andrew Haley  <aph@cygnus.com>
        * jcf-path.c (add_entry): alloca len+2 rather than len+1 bytes;
        we'll need a directory separator and a null character.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25726 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 0c590c57603..bdd951506f4 100644 --- a/gcc/java/jcf-path.c +++ b/gcc/java/jcf-path.c @@ -158,7 +158,7 @@ add_entry (entp, filename, is_system)       work more easily.  Eww.  */    if (filename[len - 1] != '/' && filename[len - 1] != DIR_SEPARATOR)      { -      char *f2 = (char *) alloca (len + 1); +      char *f2 = (char *) alloca (len + 2);        strcpy (f2, filename);        f2[len] = DIR_SEPARATOR;        f2[len + 1] = '\0';  | 

