diff options
author | Colin Walters <walters@redhat.com> | 2007-04-06 14:28:15 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2007-04-06 14:28:15 +0000 |
commit | b00d7439654d3f4d4de1a597c3932e68a8008212 (patch) | |
tree | 516da2a5592d6ea3fafe724655e247222aa8a345 /gcc/java | |
parent | f8192a406ecb8086b0147448a520dd72beee99fd (diff) | |
download | gcc-b00d7439654d3f4d4de1a597c3932e68a8008212.zip gcc-b00d7439654d3f4d4de1a597c3932e68a8008212.tar.gz gcc-b00d7439654d3f4d4de1a597c3932e68a8008212.tar.bz2 |
jcf-io.c (open_class): Copy 'filename'.
2007-04-06 Colin Walters <walters@redhat.com>
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=161701
* jcf-io.c (open_class): Copy 'filename'.
From-SVN: r123616
Diffstat (limited to 'gcc/java')
-rw-r--r-- | gcc/java/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/java/jcf-io.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index e02257f..83c3207 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +2007-04-06 Colin Walters <walters@redhat.com> + + https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=161701 + * jcf-io.c (open_class): Copy 'filename'. + 2007-04-03 Andrew Haley <aph@redhat.com> * jvgenmain.c (main): Change main to use class$, not class$$. diff --git a/gcc/java/jcf-io.c b/gcc/java/jcf-io.c index 0c9b07b..10de9d2 100644 --- a/gcc/java/jcf-io.c +++ b/gcc/java/jcf-io.c @@ -259,7 +259,7 @@ open_class (const char *filename, JCF *jcf, int fd, const char *dep_name) jcf->read_ptr = jcf->buffer; jcf->read_end = jcf->buffer_end; jcf->read_state = NULL; - jcf->filename = filename; + jcf->filename = xstrdup (filename); if (read (fd, jcf->buffer, stat_buf.st_size) != stat_buf.st_size) { perror ("Failed to read .class file"); |