FreeCalypso > hg > fc-sim-tools
changeset 11:60fd23186e2e
fc-pcsc-backend: flush stdout
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 14 Mar 2021 07:14:33 +0000 |
parents | ddd767f6e15b |
children | 2260fbd28b2a |
files | pcsc/main.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
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;