diff options
author | Mark Wielaard <mark@klomp.org> | 2003-02-01 01:31:31 +0000 |
---|---|---|
committer | Mark Wielaard <mark@gcc.gnu.org> | 2003-02-01 01:31:31 +0000 |
commit | 36da0e789c94d96d5c45b63d69fbe1daa0284e00 (patch) | |
tree | ecf32a0c6173c9806349d70ddce1d938b016d45f /gcc | |
parent | 2f278625ee254d3293798efeb57003a42fc2871a (diff) | |
download | gcc-36da0e789c94d96d5c45b63d69fbe1daa0284e00.zip gcc-36da0e789c94d96d5c45b63d69fbe1daa0284e00.tar.gz gcc-36da0e789c94d96d5c45b63d69fbe1daa0284e00.tar.bz2 |
* gjavah.c (throwable_p): Allocate 1 more byte for string.
From-SVN: r62228
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/java/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/java/gjavah.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 062c368..bb360c0 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,7 @@ +2003-01-31 Mark Wielaard <mark@klomp.org> + + * gjavah.c (throwable_p): Allocate 1 more byte for string. + 2003-01-31 Nathan Sidwell <nathan@codesourcery.com> * class.c (make_class): Use BINFO_ELTS. diff --git a/gcc/java/gjavah.c b/gcc/java/gjavah.c index 7c7e368..42f3327 100644 --- a/gcc/java/gjavah.c +++ b/gcc/java/gjavah.c @@ -1119,7 +1119,7 @@ throwable_p (const unsigned char *clname) for (length = 0; clname[length] != ';' && clname[length] != '\0'; ++length) ; - current = ALLOC (length); + current = ALLOC (length + 1); for (i = 0; i < length; ++i) current[i] = clname[i] == '/' ? '.' : clname[i]; current[length] = '\0'; |