Fixed execvp arg null termination
This commit is contained in:
parent
ebae3d9e8d
commit
19e56fdca3
1 changed files with 2 additions and 1 deletions
|
|
@ -158,8 +158,9 @@ int main(int argc, char *argv[])
|
|||
}
|
||||
set_editor(&f);
|
||||
make_skratch_file(&f);
|
||||
char *args[2];
|
||||
char *args[3];
|
||||
args[0] = f.editor;
|
||||
args[1] = f.file_path;
|
||||
args[2] = NULL;
|
||||
execvp(f.editor,args);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue