Solution to problem #351, TDE/tqt3#100 Signed-off-by: ormorph <roma251078@mail.ru>pull/352/head
parent
bbd4b5275b
commit
24b756f9e2
@ -0,0 +1,29 @@
|
||||
--- a/src/tools/qglobal.cpp
|
||||
+++ b/src/tools/qglobal.cpp
|
||||
@@ -520,7 +520,7 @@ void tqDebug( const char *msg, ... )
|
||||
va_list ap;
|
||||
va_start( ap, msg ); // use variable arg list
|
||||
#if defined(QT_VSNPRINTF)
|
||||
- QT_VSNPRINTF( &buf[len], QT_BUFFER_LENGTH, msg, ap );
|
||||
+ QT_VSNPRINTF( &buf[len], QT_BUFFER_LENGTH-len, msg, ap );
|
||||
#else
|
||||
vsprintf( &buf[len], msg, ap );
|
||||
#endif
|
||||
@@ -555,7 +555,7 @@ void tqWarning( const char *msg, ... )
|
||||
va_list ap;
|
||||
va_start( ap, msg ); // use variable arg list
|
||||
#if defined(QT_VSNPRINTF)
|
||||
- QT_VSNPRINTF( &buf[len], QT_BUFFER_LENGTH, msg, ap );
|
||||
+ QT_VSNPRINTF( &buf[len], QT_BUFFER_LENGTH-len, msg, ap );
|
||||
#else
|
||||
vsprintf( &buf[len], msg, ap );
|
||||
#endif
|
||||
@@ -590,7 +590,7 @@ void tqFatal( const char *msg, ... )
|
||||
va_list ap;
|
||||
va_start( ap, msg ); // use variable arg list
|
||||
#if defined(QT_VSNPRINTF)
|
||||
- QT_VSNPRINTF( &buf[len], QT_BUFFER_LENGTH, msg, ap );
|
||||
+ QT_VSNPRINTF( &buf[len], QT_BUFFER_LENGTH-len, msg, ap );
|
||||
#else
|
||||
vsprintf( &buf[len], msg, ap );
|
||||
#endif
|
Loading…
Reference in new issue