[Mplayer-cvslog] CVS: main mp_msg.c,1.16,1.17

Atmosfear atmos4 at mplayerhq.hu
Wed Jun 5 04:24:38 CEST 2002


Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv8672

Modified Files:
	mp_msg.c 
Log Message:
Extend maximum mp_msg message size, some translations need it or help message will be cutted.


Index: mp_msg.c
===================================================================
RCS file: /cvsroot/mplayer/main/mp_msg.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- mp_msg.c	12 May 2002 00:40:22 -0000	1.16
+++ mp_msg.c	5 Jun 2002 02:24:35 -0000	1.17
@@ -12,6 +12,9 @@
 #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_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)




More information about the MPlayer-cvslog mailing list