Author: sginsberg
Date: Thu Jul 17 17:25:03 2008
New Revision: 34570
URL:
http://svn.reactos.org/svn/reactos?rev=34570&view=rev
Log:
- Patch from Samuel "encoded" Serapion (samdwise51 at gmail dot com)
- Use "size_t" instead of "unsigned int" where appropriate
Modified:
trunk/reactos/lib/sdk/crt/string/wcs.c
Modified: trunk/reactos/lib/sdk/crt/string/wcs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/string/wcs.c?r…
==============================================================================
--- trunk/reactos/lib/sdk/crt/string/wcs.c [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/string/wcs.c [iso-8859-1] Thu Jul 17 17:25:03 2008
@@ -737,7 +737,7 @@
/*********************************************************************
* _vsnprintf (MSVCRT.@)
*/
-int CDECL _vsnprintf( char *str, unsigned int len,
+int CDECL _vsnprintf( char *str, size_t len,
const char *format, va_list valist )
{
DWORD sz;
@@ -775,7 +775,7 @@
/*********************************************************************
* _snprintf (MSVCRT.@)
*/
-int CDECL _snprintf(char *str, unsigned int len, const char *format, ...)
+int CDECL _snprintf(char *str, size_t len, const char *format, ...)
{
int retval;
va_list valist;
@@ -788,7 +788,7 @@
/*********************************************************************
* _vsnwsprintf (MSVCRT.@)
*/
-int CDECL _vsnwprintf( wchar_t *str, unsigned int len,
+int CDECL _vsnwprintf( wchar_t *str, size_t len,
const wchar_t *format, va_list valist )
{
pf_output out;
@@ -804,7 +804,7 @@
/*********************************************************************
* _snwprintf (MSVCRT.@)
*/
-int CDECL _snwprintf( wchar_t *str, unsigned int len, const wchar_t *format, ...)
+int CDECL _snwprintf( wchar_t *str, size_t len, const wchar_t *format, ...)
{
int retval;
va_list valist;