Skip to content
Snippets Groups Projects
Commit 83b82e44 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

memory leak

parent 65dab79c
No related branches found
No related tags found
No related merge requests found
......@@ -753,8 +753,7 @@ static int check_telnet_options(struct connectdata *conn)
was given on the command line */
if(conn->bits.user_passwd)
{
char *buf = malloc(256);
sprintf(buf, "USER,%s", conn->user);
snprintf(option_arg, sizeof(option_arg), "USER,%s", conn->user);
tn->telnet_vars = curl_slist_append(tn->telnet_vars, buf);
tn->us_preferred[CURL_TELOPT_NEW_ENVIRON] = CURL_YES;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment