Browse Source

fgets error

pre-master-46
Jim Monte 6 years ago
committed by Holger Vogt
parent
commit
b5ce669de5
  1. 3
      src/frontend/inp.c

3
src/frontend/inp.c

@ -1390,8 +1390,7 @@ com_edit(wordlist *wl)
fprintf(cp_out, "run circuit? ");
fflush(cp_out);
fgets(buf, BSIZE_SP, stdin);
if (buf[0] != 'n') {
if (fgets(buf, BSIZE_SP, stdin) == (char *) NULL || buf[0] != 'n') {
fprintf(cp_out, "running circuit\n");
com_run(NULL);
}

Loading…
Cancel
Save