Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 1, 2004, 4:22:06 PM (20 years ago)
Author:
bensch
Message:

orxonox/branches/gui/console: segmentation fault fixed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/gui/console/orxonox_console_log.cc

    r1890 r1907  
    5555void OrxonoxConsoleLog::appendText(char* append)
    5656{
    57   char* buffer = new char;
    58   sprintf (buffer, "%s\n", append);
    5957  if (verbose>=1)
    60     printf ("appending %s\n", append);
    61   gtk_text_buffer_insert_at_cursor (log, buffer, -1);
     58    printf ("appending: %s\n", append);
     59  strcat (append,"\n");
     60  gtk_text_buffer_insert_at_cursor (log, append, -1);
    6261  return;
    6362}
Note: See TracChangeset for help on using the changeset viewer.