psxhdrs/strncat: Fix string truncation warning

This commit is contained in:
Aschref Ben Thabet
2020-07-30 14:57:57 +02:00
committed by Sebastian Huber
parent 21c7e3a41f
commit 699f465c50
+1 -1
View File
@@ -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 );
}