* event.cpp: Event class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
- * $Id: event.cpp,v 1.3 2003/04/01 12:24:54 gbazin Exp $
+ * $Id: event.cpp,v 1.4 2003/04/08 02:06:13 gbazin Exp $
*
* Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
//---------------------------------------------------------------------------
void Event::PostTextMessage( string text )
{
- char *txt = new char[text.size()];
+ char *txt = new char[text.size()+1];
strcpy( txt, text.c_str() );
OSAPI_PostMessage( NULL, CTRL_SET_TEXT, (unsigned int)this, (long)txt );
}
* event.h: Event class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
- * $Id: event.h,v 1.2 2003/03/20 09:29:07 karibu Exp $
+ * $Id: event.h,v 1.3 2003/04/08 02:06:13 gbazin Exp $
*
* Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
// VLC specific messages
//---------------------------------------------------------------------------
-#define MAX_EVENT_SIZE 20
+#define MAX_EVENT_SIZE 30
#define MAX_PARAM_SIZE 20
#define VLC_MESSAGE (WM_APP)