From be3fcd9b7eeafff71b9d3a5a1fb88c27fc338c7e Mon Sep 17 00:00:00 2001 From: Stas Degteff Date: Thu, 22 Feb 2007 11:10:55 +0000 Subject: [PATCH] Fix Win32 build --- goldlib/gall/gcharset.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/goldlib/gall/gcharset.cpp b/goldlib/gall/gcharset.cpp index 5f46456..c24c7cb 100644 --- a/goldlib/gall/gcharset.cpp +++ b/goldlib/gall/gcharset.cpp @@ -102,7 +102,7 @@ const char *get_dos_charset(const char *cpfrom) #if defined(__WIN32__) int cp = GetOEMCP(); static char cpto[10]=""; - if (cp) snprintf(cpto, sizeof(cpto), "CP%u", cp); + if (cp) gsprintf(PRINTF_DECLARE_BUFFER(cpto), "CP%u", cp); else cpto[0]='\0'; return cpto; #elif defined(__MSDOS__) || defined(__OS2__)