Fixed execvp arg null termination

This commit is contained in:
phixxy 2026-03-20 18:38:24 -07:00
parent ebae3d9e8d
commit 19e56fdca3

View file

@ -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);
}