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);
|
fclose(fp);
|
||||||
|
|
||||||
char* command;
|
char* command;
|
||||||
if(0 > asprintf(&command, "$EDITOR %s", tmpName)) exit(1);
|
if(0 > asprintf(&command, "${EDITOR:-'vi'} %s", tmpName)) exit(1);
|
||||||
system(command);
|
system(command);
|
||||||
AddFilePost(1, tmpName, con);
|
AddFilePost(1, tmpName, con);
|
||||||
|
|
||||||
|
|
@ -390,7 +390,7 @@ int BlogEdit(int postID, MYSQL* con)
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
|
|
||||||
char* command;
|
char* command;
|
||||||
if(0 > asprintf(&command, "$EDITOR %s", tmpName)) exit(1);
|
if(0 > asprintf(&command, "${EDITOR:-'vi'} %s", tmpName)) exit(1);
|
||||||
system(command);
|
system(command);
|
||||||
|
|
||||||
EditFilePost(tmpName, postID, con);
|
EditFilePost(tmpName, postID, con);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue