aboutsummaryrefslogtreecommitdiffhomepage
path: root/halloc_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'halloc_util.c')
-rw-r--r--halloc_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/halloc_util.c b/halloc_util.c
index f2eae06a..3213fd70 100644
--- a/halloc_util.c
+++ b/halloc_util.c
@@ -88,7 +88,7 @@ wchar_t *halloc_wcsndup( void * context, const wchar_t *in, int c )
{
die_mem();
}
- wcslcpy( res, in, c );
+ wcslcpy( res, in, c+1 );
res[c] = L'\0';
return res;
}