From ac044784a6ce64ff15610d4b70750065a7f01b80 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 1 Sep 2015 21:07:54 +0200 Subject: start on makefile and fixing warnings and errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/wchar/wcscat.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/wchar/wcscat.c') diff --git a/src/wchar/wcscat.c b/src/wchar/wcscat.c index c7b1c5e..491f9b7 100644 --- a/src/wchar/wcscat.c +++ b/src/wchar/wcscat.c @@ -16,7 +16,6 @@ * along with this program. If not, see . */ #include -#include @@ -55,7 +54,7 @@ wchar_t* wcscat(wchar_t* restrict whither, const wchar_t* restrict whence) */ wchar_t* wcsncat(wchar_t* restrict whither, const wchar_t* restrict whence, size_t maxlen) { - wcsncpy(whither + wcslen(whither), whence, laxmen); + wcsncpy(whither + wcslen(whither), whence, maxlen); return whither; } -- cgit v1.2.3-70-g09d2