Author: tfaber
Date: Sat Feb 2 13:48:19 2013
New Revision: 58267
URL:
http://svn.reactos.org/svn/reactos?rev=58267&view=rev
Log:
[CRT]
- Fix the strxfrm hack to allow dest == NULL.
Modified:
trunk/reactos/lib/sdk/crt/string/strxfrm.c
Modified: trunk/reactos/lib/sdk/crt/string/strxfrm.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/string/strxfrm…
==============================================================================
--- trunk/reactos/lib/sdk/crt/string/strxfrm.c [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/string/strxfrm.c [iso-8859-1] Sat Feb 2 13:48:19 2013
@@ -17,7 +17,7 @@
size_t strxfrm( char *dest, const char *src, size_t n )
{
strncpy(dest, src, n);
- return (strlen(dest));
+ return strnlen(src, n);
}
#else
size_t strxfrm( char *dest, const char *src, size_t n )