Fixed bug #9
This commit is contained in:
parent
d1fa7b26bd
commit
8ee700c199
4
BlogDB.c
4
BlogDB.c
|
|
@ -364,7 +364,7 @@ int BlogWrite(MYSQL* con)
|
|||
fclose(fp);
|
||||
|
||||
char* command;
|
||||
if(0 > asprintf(&command, "$EDITOR %s", tmpName)) exit(1);
|
||||
if(0 > asprintf(&command, "${EDITOR:-'vi'} %s", tmpName)) exit(1);
|
||||
system(command);
|
||||
AddFilePost(1, tmpName, con);
|
||||
|
||||
|
|
@ -390,7 +390,7 @@ int BlogEdit(int postID, MYSQL* con)
|
|||
fclose(fp);
|
||||
|
||||
char* command;
|
||||
if(0 > asprintf(&command, "$EDITOR %s", tmpName)) exit(1);
|
||||
if(0 > asprintf(&command, "${EDITOR:-'vi'} %s", tmpName)) exit(1);
|
||||
system(command);
|
||||
|
||||
EditFilePost(tmpName, postID, con);
|
||||
|
|
|
|||
Loading…
Reference in New Issue