From: Andrii Simiklit <andrii.simik...@globallogic.com> I guess it makes this implementation more portable.
Signed-off-by: Andrii Simiklit <andrii.simik...@globallogic.com> --- src/egl/main/egllog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/egl/main/egllog.c b/src/egl/main/egllog.c index c223f49..d21b070 100644 --- a/src/egl/main/egllog.c +++ b/src/egl/main/egllog.c @@ -42,6 +42,7 @@ #include <strings.h> #include "c11/threads.h" #include "util/macros.h" +#include "util/u_string.h" #include "egllog.h" @@ -154,7 +155,7 @@ _eglLog(EGLint level, const char *fmtStr, ...) mtx_lock(&logging.mutex); va_start(args, fmtStr); - ret = vsnprintf(msg, MAXSTRING, fmtStr, args); + ret = util_vsnprintf(msg, MAXSTRING, fmtStr, args); if (ret < 0 || ret >= MAXSTRING) strcpy(msg, "<message truncated>"); va_end(args); -- 2.7.4 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev