aboutsummaryrefslogtreecommitdiffhomepage
path: root/fallback.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-04-13 22:18:51 +1000
committerGravatar axel <axel@liljencrantz.se>2006-04-13 22:18:51 +1000
commit45d56d8e058895196bf341d8a27fd8003bd831d9 (patch)
treec6ccbdcd2bf249ee8e581fd23f329f50b5ef6418 /fallback.c
parent53295d38b755dc87c8b882b9d9b3c3c072d3749a (diff)
Drop all calls to wcsncpy
darcs-hash:20060413121851-ac50b-1f479b96b3aa1050a30e9ee0ed27cc107ce2bc45.gz
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