summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2022-05-20 01:20:23 +0200
committerDirk Engling <erdgeist@erdgeist.org>2022-05-20 01:20:23 +0200
commitb8c73169ab48dea503091f2d16d90c872d4ac99f (patch)
tree3de855352b44214abb0bcc31404799ea020b4520
parent7569f82a4a5d43c16017f1f86d02ba4d158d567f (diff)
ensure that the format string is const
-rwxr-xr-xvchat-tls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vchat-tls.c b/vchat-tls.c
index 4b555fd..e6e4cc1 100755
--- a/vchat-tls.c
+++ b/vchat-tls.c
@@ -436,7 +436,7 @@ void vc_init_x509store(vc_x509store_t *store)
436} 436}
437 437
438static void vc_tls_report_error(int error, char *message) { 438static void vc_tls_report_error(int error, char *message) {
439 size_t used = snprintf(tmpstr, sizeof(tmpstr), message); 439 size_t used = snprintf(tmpstr, sizeof(tmpstr), "%s", message);
440 mbedtls_strerror(error, tmpstr + used, sizeof(tmpstr) - used); 440 mbedtls_strerror(error, tmpstr + used, sizeof(tmpstr) - used);
441 writecf(FS_ERR, tmpstr); 441 writecf(FS_ERR, tmpstr);
442} 442}