* gjavah.c (throwable_p): Allocate 1 more byte for string.

From-SVN: r62228
This commit is contained in:
Mark Wielaard 2003-02-01 01:31:31 +00:00 committed by Mark Wielaard
parent 2f278625ee
commit 36da0e789c
2 changed files with 5 additions and 1 deletions

View File

@ -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.

View File

@ -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';