From: José Fonseca Date: Fri, 5 Sep 2008 01:27:03 +0000 (+0900) Subject: gallium: Pass 512 bytes max to EngDebugPrint. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=50524c284528d467082266dfa18112f3cdc6202d;p=mesa.git gallium: Pass 512 bytes max to EngDebugPrint. --- diff --git a/src/gallium/auxiliary/util/p_debug.c b/src/gallium/auxiliary/util/p_debug.c index 7d1dba5a247..d56449e7ec6 100644 --- a/src/gallium/auxiliary/util/p_debug.c +++ b/src/gallium/auxiliary/util/p_debug.c @@ -76,7 +76,7 @@ void _debug_vprintf(const char *format, va_list ap) /* EngDebugPrint does not handle float point arguments, so we need to use * our own vsnprintf implementation. It is also very slow, so buffer until * we find a newline. */ - static char buf[512 + 1] = {'\0'}; + static char buf[512] = {'\0'}; size_t len = strlen(buf); int ret = util_vsnprintf(buf + len, sizeof(buf) - len, format, ap); if(ret > (int)(sizeof(buf) - len - 1) || util_strchr(buf + len, '\n')) {