mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-18 11:49:41 +08:00
* gjavah.c (throwable_p): Allocate 1 more byte for string.
From-SVN: r62228
This commit is contained in:
parent
2f278625ee
commit
36da0e789c
@ -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.
|
||||
|
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user