diff options
author | José Fonseca <[email protected]> | 2008-09-05 10:27:03 +0900 |
---|---|---|
committer | José Fonseca <[email protected]> | 2008-09-05 10:31:38 +0900 |
commit | 50524c284528d467082266dfa18112f3cdc6202d (patch) | |
tree | 3d03350fee6cbe738cebef397859b5b6176a4344 /src/gallium/auxiliary | |
parent | 53979d0a352fa74c533200bdba405915582a5974 (diff) |
gallium: Pass 512 bytes max to EngDebugPrint.
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/util/p_debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
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')) { |