From 917b65b549ea2125d34bef71870ecf39e5ab3e24 Mon Sep 17 00:00:00 2001 From: Bob Jamison Date: Mon, 12 Mar 2007 19:38:17 +0000 Subject: use g_vsnprintf() instead of vsnprintf() to avoid platform problems (bzr r2620) --- src/extension/internal/pov-out.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src') 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); } -- cgit v1.2.3