aboutsummaryrefslogtreecommitdiffhomepage
path: root/fallback.c
diff options
context:
space:
mode:
Diffstat (limited to 'fallback.c')
-rw-r--r--fallback.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fallback.c b/fallback.c
index 6f0327d6..d6b708ad 100644
--- a/fallback.c
+++ b/fallback.c
@@ -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