summaryrefslogtreecommitdiffstats
path: root/mp_msg.c
diff options
context:
space:
mode:
authorpl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-09-12 15:46:16 +0000
committerpl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-09-12 15:46:16 +0000
commit3c154f93b0ebe39e5c647cf888f6c091419c32ac (patch)
tree83ae22455d1beced1c9263f765fcc4f413768296 /mp_msg.c
parentda6a021b74d051a6c729d54e99bab84257ca128b (diff)
downloadmpv-3c154f93b0ebe39e5c647cf888f6c091419c32ac.tar.bz2
mpv-3c154f93b0ebe39e5c647cf888f6c091419c32ac.tar.xz
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
Diffstat (limited to 'mp_msg.c')
-rw-r--r--mp_msg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mp_msg.c b/mp_msg.c
index 9265d6271f..aaf98ef33f 100644
--- a/mp_msg.c
+++ b/mp_msg.c
@@ -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