summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2018-09-24 07:37:47 +0000
committerjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2018-09-24 07:37:47 +0000
commitd2ffb2b7ba95a51b3cd903b83788cab8f6d191bb (patch)
treef3f753f11e35dfdf943334bd1e022b7df6069303
parentdaf9c74786e368964e38a31cdebd4bfde6664b12 (diff)
downloadneon-d2ffb2b7ba95a51b3cd903b83788cab8f6d191bb.tar.gz
* 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
-rw-r--r--test/string-tests.c2
1 files changed, 1 insertions, 1 deletions
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);