mirror of
https://gitlab.com/spectre.app/cli.git
synced 2024-11-01 10:51:44 +01:00
Ensure master password isn't lost after ending editline context.
This commit is contained in:
parent
acc1fb580b
commit
a4b8d4c900
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ int main(int argc, char *const argv[]) {
|
|||
EditLine *e = el_init("mpw", stdin, stdout, stderr);
|
||||
int count = 0;
|
||||
char *line = el_gets(e, &count);
|
||||
masterPassword = strsep(&line, "\n");
|
||||
masterPassword = strdup(strsep(&line, "\n"));
|
||||
el_end(e);
|
||||
|
||||
if (count < 0) {
|
||||
|
|
Loading…
Reference in a new issue