telnet: drop an int cast no longer necessary

Spotted-by GitHub Code Quality

Follow-up to c5637baa06
Follow-up to 83a5e39065

Closes #22002
This commit is contained in:
Viktor Szakats 2026-06-14 12:26:46 +02:00
parent fe2df80a5a
commit ba16b83221
No known key found for this signature in database

View file

@ -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,