Index: dll/opengl/mesa/main/vsnprintf.c =================================================================== --- dll/opengl/mesa/main/vsnprintf.c (revision 70217) +++ dll/opengl/mesa/main/vsnprintf.c (working copy) @@ -150,6 +150,7 @@ va_dcl #endif { + int nchar; va_list ap; #if __STDC__ va_start(ap, fmt); @@ -156,9 +157,9 @@ #else va_start(ap); #endif - - return (vsnprintf(str, n, fmt, ap)); + nchar = vsnprintf(str, n, fmt, ap) va_end(ap); + return (nchar); }