This is the mail archive of the java-prs@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgcj/40479] libjava/gnu/gcj/util/natGCInfo.cc: bad call to sprintf



------- Comment #1 from pinskia at gcc dot gnu dot org  2009-06-17 18:00 -------
      char temp[strlen(oomDumpName) + 20];
      sprintf(temp, "%s%03d", temp, GC_dump_count++);


I think it should rather be:

      sprintf(temp, "%s%03d", oomDumpName, GC_dump_count++);


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|java                        |libgcj
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-06-17 18:00:41
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40479


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]