summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}