From 4690d90f5e2c083a17d6db3ae964086876dd64f7 Mon Sep 17 00:00:00 2001 From: ishmal Date: Mon, 12 Mar 2007 19:38:17 +0000 Subject: [PATCH] use g_vsnprintf() instead of vsnprintf() to avoid platform problems --- src/extension/internal/pov-out.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/extension/internal/pov-out.cpp b/src/extension/internal/pov-out.cpp index 14a27914e..54d49a79a 100644 --- a/src/extension/internal/pov-out.cpp +++ b/src/extension/internal/pov-out.cpp @@ -124,11 +124,7 @@ void PovOutput::out(char *fmt, ...) { va_list args; va_start(args, fmt); -#if !defined(__GNUC__) || defined(__MINGW32__) - vsnprintf(fmtbuf, 4096, fmt, args); -#else - vsprintf(fmtbuf, 4096, fmt, args); -#endif + g_vsnprintf(fmtbuf, 4096, fmt, args); va_end(args); outbuf.append(fmtbuf); } -- 2.30.2