Drop all calls to wcsncpy

darcs-hash:20060413121851-ac50b-1f479b96b3aa1050a30e9ee0ed27cc107ce2bc45.gz
This commit is contained in:
axel
2006-04-13 22:18:51 +10:00
parent 53295d38b7
commit 45d56d8e05
2 changed files with 5 additions and 26 deletions

View File

@@ -818,8 +818,7 @@ wchar_t *wcsndup( const wchar_t *in, int c )
{
return 0;
}
wcsncpy( res, in, c+1 );
res[c] = L'\0';
wcslcpy( res, in, c+1 );
return res;
}
#endif