summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testsuites/psxtests/psxhdrs/string/strncat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuites/psxtests/psxhdrs/string/strncat.c b/testsuites/psxtests/psxhdrs/string/strncat.c
index 730a56cfa6..d872be3408 100644
--- a/testsuites/psxtests/psxhdrs/string/strncat.c
+++ b/testsuites/psxtests/psxhdrs/string/strncat.c
@@ -45,7 +45,7 @@
char buffer[SIZE] = "computer";
char *result;
- result = strncat( buffer, " program", 3 );
+ result = strncat( buffer, " program", sizeof( buffer ) - 1 );
return ( result != NULL );
}