force a new line if a message is very long

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10854 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
pl 2003-09-12 15:46:16 +00:00
parent da6a021b74
commit 3c154f93b0
1 changed files with 1 additions and 0 deletions

View File

@ -68,6 +68,7 @@ void mp_msg_c( int x, const char *format, ... ){
va_start(va, format);
vsnprintf(tmp, MSGSIZE_MAX, mp_gettext(format), va);
va_end(va);
tmp[MSGSIZE_MAX-2] = '\n';
tmp[MSGSIZE_MAX-1] = 0;
#if ENABLE_GUI_CODE