summaryrefslogtreecommitdiffstats
path: root/test_cipher.c
diff options
context:
space:
mode:
Diffstat (limited to 'test_cipher.c')
-rw-r--r--test_cipher.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test_cipher.c b/test_cipher.c
index 86a88d6..97c8848 100644
--- a/test_cipher.c
+++ b/test_cipher.c
@@ -92,11 +92,11 @@ int main(int argc, char ** argv)
{
if (ciphers_list[i] == 1) {
if (openssl_output) {
- strncat(output, ciphers_def[i].openssl_name, sizeof(output));
- strncat(output, ":", sizeof(output));
+ strncat(output, ciphers_def[i].openssl_name, sizeof(output) - strlen(output) -1);
+ strncat(output, ":", sizeof(output) - strlen(output) -1);
} else {
- strncat(output, ciphers_def[i].name, sizeof(output));
- strncat(output, ", ", sizeof(output));
+ strncat(output, ciphers_def[i].name, sizeof(output) - strlen(output) -1);
+ strncat(output, ", ", sizeof(output) - strlen(output) -1);
}
}
}