From ba16b832213661a17887e15f9d7dc0899ebdd834 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sun, 14 Jun 2026 12:26:46 +0200 Subject: [PATCH] telnet: drop an `int` cast no longer necessary Spotted-by GitHub Code Quality Follow-up to c5637baa06046d317c383d420f6cbc9ddb3b0870 Follow-up to 83a5e390654fb1e77c7c5d7bd32ba147ff022cbd Closes #22002 --- lib/telnet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/telnet.c b/lib/telnet.c index 5a53962079..fbd7d5418d 100644 --- a/lib/telnet.c +++ b/lib/telnet.c @@ -1034,7 +1034,7 @@ static CURLcode suboption(struct Curl_easy *data, struct TELNET *tn) if(bad_option(v->data)) return CURLE_BAD_FUNCTION_ARGUMENT; /* Add the variable if it fits */ - if(len + tmplen < (int)sizeof(temp) - 6) { + if(len + tmplen < sizeof(temp) - 6) { const char *s = strchr(v->data, ','); if(!s) len += curl_msnprintf((char *)&temp[len], sizeof(temp) - len,