aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-08-10 22:57:14 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-08-10 22:57:14 +0000
commit20b17d6b045c26219ee8f2f8ff72b130bd1ff492 (patch)
treee2b69e87dd85429f63b9f9824b30c69bf01863a0
parentbb2317b63c1fdf74396b4054e1352c57bc6c12ec (diff)
the debug callback was called with CURLINFO_TEXT with the data size one
too big
-rw-r--r--lib/ssluse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ssluse.c b/lib/ssluse.c
index 0af7da41e..b2bb3bbe4 100644
--- a/lib/ssluse.c
+++ b/lib/ssluse.c
@@ -1098,8 +1098,8 @@ static void ssl_tls_trace(int direction, int ssl_ver, int content_type,
msg_type = *(char*)buf;
msg_name = ssl_msg_type(ssl_ver, msg_type);
- txt_len = 1 + snprintf(ssl_buf, sizeof(ssl_buf), "SSLv%c, %s%s (%d):\n",
- ver, tls_rt_name, msg_name, msg_type);
+ txt_len = snprintf(ssl_buf, sizeof(ssl_buf), "SSLv%c, %s%s (%d):\n",
+ ver, tls_rt_name, msg_name, msg_type);
Curl_debug(data, CURLINFO_TEXT, ssl_buf, txt_len, NULL);
Curl_debug(data, (direction == 1) ? CURLINFO_SSL_DATA_OUT :