From: ishmal Date: Mon, 12 Mar 2007 19:38:17 +0000 (+0000) Subject: use g_vsnprintf() instead of vsnprintf() to avoid platform problems X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4690d90f5e2c083a17d6db3ae964086876dd64f7;p=inkscape.git use g_vsnprintf() instead of vsnprintf() to avoid platform problems --- 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); }