fix parse.c
This commit is contained in:
parent
56fb016254
commit
c18e1d9857
@ -71,7 +71,7 @@ char readEmkFile() {
|
|||||||
|
|
||||||
char includeConfig() {
|
char includeConfig() {
|
||||||
char cwd[PATH_MAX];
|
char cwd[PATH_MAX];
|
||||||
file *emkconfig, *emkfile, *emkfile_new;
|
FILE *emkconfig, *emkfile, *emkfile_new;
|
||||||
char filename[100], contents;
|
char filename[100], contents;
|
||||||
|
|
||||||
emkconfig = fopen(EMKCONFIG, "r");
|
emkconfig = fopen(EMKCONFIG, "r");
|
||||||
@ -87,7 +87,7 @@ char includeConfig() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* write emkfile to new emkfile */
|
/* write emkfile to new emkfile */
|
||||||
contents = fgetc(emkfile):
|
contents = fgetc(emkfile);
|
||||||
while (contents != EOF) {
|
while (contents != EOF) {
|
||||||
fputc(contents, emkfile_new);
|
fputc(contents, emkfile_new);
|
||||||
contents = fgetc(emkfile);
|
contents = fgetc(emkfile);
|
||||||
|
Loading…
Reference in New Issue
Block a user