msvcrt: Copy strncat implementation from ntdll.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2020-07-22 11:10:42 +02:00 committed by Alexandre Julliard
parent 770d3b8623
commit 3b0fb2b175
1 changed files with 5 additions and 1 deletions

View File

@ -1171,7 +1171,11 @@ int CDECL MSVCRT_strncat_s( char* dst, MSVCRT_size_t elem, const char* src, MSVC
*/
char* __cdecl MSVCRT_strncat(char *dst, const char *src, MSVCRT_size_t len)
{
return strncat(dst, src, len);
char *d = dst;
while (*d) d++;
for ( ; len && *src; d++, src++, len--) *d = *src;
*d = 0;
return dst;
}
/*********************************************************************