diff --git a/skratch.c b/skratch.c index 7df7f77..d08135c 100644 --- a/skratch.c +++ b/skratch.c @@ -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); }