jcf-parse.c (set_source_filename): Improvement to Andrew's fix...
authorPer Bothner <per@bothner.com>
Sun, 28 Nov 2004 06:49:48 +0000 (22:49 -0800)
committerPer Bothner <bothner@gcc.gnu.org>
Sun, 28 Nov 2004 06:49:48 +0000 (22:49 -0800)
commitca6b99558d9cbd22bd88c922c629c34a76c27535
treee7ae366f8298db160eb50c0ea514c27c37446d23
parentad50046692fd8a85219e5889f59ab03b0d006f1f
jcf-parse.c (set_source_filename): Improvement to Andrew's fix...

* jcf-parse.c (set_source_filename):  Improvement to Andrew's fix:
Fix fencepost error in 'i', which got executed one too many times.
Also, fold memcpy into explicit loop, as originally intended.
Also, free temporary 'buf' which otherwise leaks.

From-SVN: r91411
gcc/java/ChangeLog
gcc/java/jcf-parse.c