diff options
Diffstat (limited to 'lib/telnet.c')
-rw-r--r-- | lib/telnet.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/telnet.c b/lib/telnet.c index e4ffd853a..0f8483800 100644 --- a/lib/telnet.c +++ b/lib/telnet.c @@ -772,12 +772,11 @@ static void printsub(struct Curl_easy *data, static bool str_is_nonascii(const char *str) { - size_t len = strlen(str); - while(len--) { - if(*str & 0x80) + char c; + while((c = *str++)) + if(c & 0x80) return TRUE; - str++; - } + return FALSE; } |