diff options
Diffstat (limited to 'libgcompat/wchar.c')
-rw-r--r-- | libgcompat/wchar.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libgcompat/wchar.c b/libgcompat/wchar.c index 1a5a23c..4ed7a7b 100644 --- a/libgcompat/wchar.c +++ b/libgcompat/wchar.c @@ -46,10 +46,11 @@ int __vswprintf_chk(wchar_t *s, size_t n, int flag, size_t slen, */ wchar_t *__wcscpy_chk(wchar_t *dest, const wchar_t *src, size_t n) { - size_t srclen = wcslen(src) + 1; + size_t srclen; assert(dest != NULL); assert(src != NULL); + srclen = wcslen(src) + 1; assert(n >= srclen); if (dest < src) { assert(dest + n <= src); |