mirror of
https://github.com/sheumann/hush.git
synced 2025-01-14 12:30:40 +00:00
Patch from vodz to fix freeing a static in cmdedit.
This commit is contained in:
parent
10175a43ee
commit
8f6978405d
@ -442,7 +442,8 @@ static void parse_prompt(const char *prmt_ptr)
|
|||||||
if (flg_not_length == ']')
|
if (flg_not_length == ']')
|
||||||
sub_len++;
|
sub_len++;
|
||||||
}
|
}
|
||||||
free(pwd_buf);
|
if(pwd_buf!=(char *)unknown)
|
||||||
|
free(pwd_buf);
|
||||||
cmdedit_prompt = prmt_mem_ptr;
|
cmdedit_prompt = prmt_mem_ptr;
|
||||||
cmdedit_prmt_len = prmt_len - sub_len;
|
cmdedit_prmt_len = prmt_len - sub_len;
|
||||||
put_prompt();
|
put_prompt();
|
||||||
|
@ -442,7 +442,8 @@ static void parse_prompt(const char *prmt_ptr)
|
|||||||
if (flg_not_length == ']')
|
if (flg_not_length == ']')
|
||||||
sub_len++;
|
sub_len++;
|
||||||
}
|
}
|
||||||
free(pwd_buf);
|
if(pwd_buf!=(char *)unknown)
|
||||||
|
free(pwd_buf);
|
||||||
cmdedit_prompt = prmt_mem_ptr;
|
cmdedit_prompt = prmt_mem_ptr;
|
||||||
cmdedit_prmt_len = prmt_len - sub_len;
|
cmdedit_prmt_len = prmt_len - sub_len;
|
||||||
put_prompt();
|
put_prompt();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user