diff options
Diffstat (limited to 'test/string-tests.c')
-rw-r--r-- | test/string-tests.c | 2 |
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); |