FreeCalypso > hg > fc-sim-tools
diff pcsc/main.c @ 11:60fd23186e2e
fc-pcsc-backend: flush stdout
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 14 Mar 2021 07:14:33 +0000 |
parents | 45ea06eaa9fd |
children |
line wrap: on
line diff
--- a/pcsc/main.c Sun Mar 14 07:11:25 2021 +0000 +++ b/pcsc/main.c Sun Mar 14 07:14:33 2021 +0000 @@ -91,8 +91,9 @@ connect_to_card(); retrieve_atr("A"); putchar('\n'); + fflush(stdout); - while (fgets(inbuf, sizeof inbuf, stdin)) { + for (; fgets(inbuf, sizeof inbuf, stdin); fflush(stdout)) { rc = parse_hex_input(inbuf, cmd); if (rc < 0) continue;