diff options
author | atmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-06-05 02:24:35 +0000 |
---|---|---|
committer | atmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-06-05 02:24:35 +0000 |
commit | 49d13970550898741af54c3f70f88fc890db3fb2 (patch) | |
tree | bb42a391f4fe50eff861d9d0dd2dfe502944caa1 /mp_msg.c | |
parent | c63329d83877ec66dc773ec29a4cecfcd61adcb9 (diff) | |
download | mpv-49d13970550898741af54c3f70f88fc890db3fb2.tar.bz2 mpv-49d13970550898741af54c3f70f88fc890db3fb2.tar.xz |
Extend maximum mp_msg message size, some translations need it or help message will be cutted.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6307 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mp_msg.c')
-rw-r--r-- | mp_msg.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -12,6 +12,9 @@ extern int use_gui; #endif #include "mp_msg.h" +/* maximum message length of mp_msg */ +#define MSGSIZE_MAX 3072 + static int mp_msg_levels[MSGT_MAX]; // verbose level of this module #if 1 @@ -40,12 +43,12 @@ void mp_msg_set_level(int verbose){ void mp_msg_c( int x, const char *format, ... ){ #if 1 va_list va; - char tmp[2048]; + char tmp[MSGSIZE_MAX]; if((x&255)>mp_msg_levels[x>>8]) return; // do not display va_start(va, format); - vsnprintf(tmp, 2048, mp_gettext(format), va); - tmp[2047] = 0; + vsnprintf(tmp, MSGSIZE_MAX, mp_gettext(format), va); + tmp[MSGSIZE_MAX-1] = 0; #if defined(HAVE_NEW_GUI) && !defined(FOR_MENCODER) if(use_gui) |