diff options
author | Robert Griebl <rgriebl@trolltech.com> | 2009-06-10 14:32:39 (GMT) |
---|---|---|
committer | Robert Griebl <rgriebl@trolltech.com> | 2009-06-10 14:32:39 (GMT) |
commit | 5fcc4febed6f88790d80f7869b647629f7e294af (patch) | |
tree | 858d8007b30685a9401e1b3f9928adb837084363 /src/corelib | |
parent | 0f1486d6f36d25a08a7b75dfd5fdfa36c2ad98d2 (diff) | |
download | Qt-5fcc4febed6f88790d80f7869b647629f7e294af.zip Qt-5fcc4febed6f88790d80f7869b647629f7e294af.tar.gz Qt-5fcc4febed6f88790d80f7869b647629f7e294af.tar.bz2 |
Shrink the emergency qWarning buffer to 256 bytes.
Reviewed-by: Harald Fernengel
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/global/qglobal.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/global/qglobal.cpp b/src/corelib/global/qglobal.cpp index 32c9139..c1f1f24 100644 --- a/src/corelib/global/qglobal.cpp +++ b/src/corelib/global/qglobal.cpp @@ -2207,10 +2207,10 @@ void qt_message_output(QtMsgType msgType, const char *buf) */ static void qEmergencyOut(QtMsgType msgType, const char *msg, va_list ap) { - char emergency_buf[1024] = { '\0' }; - emergency_buf[1023] = '\0'; + char emergency_buf[256] = { '\0' }; + emergency_buf[255] = '\0'; if (msg) - qvsnprintf(emergency_buf, 1023, msg, ap); + qvsnprintf(emergency_buf, 255, msg, ap); qt_message_output(msgType, emergency_buf); } #endif |