natGCInfo.cc (nomem_handler): Use oomDumpName as dump file name base.

* gnu/gcj/util/natGCInfo.cc (nomem_handler): Use oomDumpName as
	dump file name base.

From-SVN: r150166
This commit is contained in:
David Daney
2009-07-28 16:26:13 +00:00
committed by David Daney
parent 394a5b34b1
commit 2cf7e0f0db
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -407,7 +407,7 @@ nomem_handler(size_t size)
if (oomDumpName)
{
char temp[strlen(oomDumpName) + 20];
sprintf(temp, "%s%03d", temp, GC_dump_count++);
sprintf(temp, "%s%03d", oomDumpName, GC_dump_count++);
printf("nomem_handler(%zd) called\n", size);
gc_ok--;
GC_enumerator x(temp);