From d2ffb2b7ba95a51b3cd903b83788cab8f6d191bb Mon Sep 17 00:00:00 2001 From: joe Date: Mon, 24 Sep 2018 07:37:47 +0000 Subject: * test/string-tests.c (str_errors): Fix gcc 8 warning. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1997 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845 --- test/string-tests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/string-tests.c b/test/string-tests.c index 75b22a5..1a35d8f 100644 --- a/test/string-tests.c +++ b/test/string-tests.c @@ -320,7 +320,7 @@ static int str_errors(void) { char expect[200], actual[200]; - strncpy(expect, strerror(ENOENT), sizeof(expect)); + strncpy(expect, strerror(ENOENT), sizeof(expect)-1); ONN("ne_strerror did not return passed-in buffer", ne_strerror(ENOENT, actual, sizeof(actual)) != actual); -- cgit v1.2.1