As checkAPIs.pl says, "use StringCchPrintf".

svn path=/trunk/; revision=54641
This commit is contained in:
Guy Harris 2014-01-07 23:56:21 +00:00
parent 62796c01f0
commit e8dd800cc1
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ utf_8to16_snprintf(TCHAR *utf16buf, gint utf16buf_len, const gchar* fmt, ...)
dst = g_strdup_vprintf(fmt, ap);
va_end(ap);
_snwprintf(utf16buf, utf16buf_len, _T("%s"), utf_8to16(dst));
StringCchPrintf(utf16buf, utf16buf_len, _T("%s"), utf_8to16(dst));
g_free(dst);
}