diff options
author | louie <lshprung@yahoo.com> | 2020-12-23 18:36:24 -0800 |
---|---|---|
committer | louie <lshprung@yahoo.com> | 2020-12-23 18:36:24 -0800 |
commit | ecb7f2335af402242b447f95e5e2539ad9668011 (patch) | |
tree | aabeba5530b17b520cdb7b276afc55473e16a819 | |
parent | f9227cef5bcbe9f3a3fe3487ed1cc358cff37932 (diff) |
Fixed tiny scanf/getchar issue
-rw-r--r-- | read_cfg.c | 4 | ||||
-rw-r--r-- | read_cfg.o | bin | 20608 -> 20544 bytes | |||
-rwxr-xr-x | tml | bin | 47080 -> 47040 bytes |
3 files changed, 2 insertions, 2 deletions
@@ -192,7 +192,7 @@ void mkconfig_wizard(char *path){ printf("\nNo configuration file found. Auto-generate one now at \"%s\"? [Y/n] ", path); fflush(stdout); - scanf("%c", &input); + scanf(" %c", &input); if(input == 'n'){ printf("Configuration will not be auto-generated\n"); @@ -275,7 +275,7 @@ void mkconfig_wizard(char *path){ fclose(fp); printf("done\nIt is highly recommended to further tweak the configuration file! [press any key to continue]"); fflush(stdout); - fflush(stdin); + getchar(); getchar(); return; Binary files differBinary files differ |