change new to malloc
@@ -20,7 +20,7 @@ int Fl_event(void) { return Fl::event(); }
int Fl_event_key(void) { return Fl::event_key(); }
const char *Fl_event_text(void) {
- char *buf = new (std::nothrow) char[Fl::event_length() + 1];
+ char *buf = (char*)malloc(Fl::event_length() + 1);
strncpy(buf, Fl::event_text(), Fl::event_length() + 1);
return buf;
}
