mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:01:41 +03:00
telnet: print DISPlay LOCation in printsub without mutating buffer
Closes #18852
This commit is contained in:
parent
eb88092703
commit
da8f7ae096
1 changed files with 2 additions and 2 deletions
|
|
@ -759,8 +759,8 @@ static void printsub(struct Curl_easy *data,
|
|||
switch(pointer[0]) {
|
||||
case CURL_TELOPT_TTYPE:
|
||||
case CURL_TELOPT_XDISPLOC:
|
||||
pointer[length] = 0;
|
||||
infof(data, " \"%s\"", &pointer[2]);
|
||||
infof(data, " \"%.*s\"",
|
||||
(int)((length > 2) ? (length - 2) : 0), &pointer[2]);
|
||||
break;
|
||||
case CURL_TELOPT_NEW_ENVIRON:
|
||||
if(pointer[1] == CURL_TELQUAL_IS) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue