mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-08-22 05:47:42 +02:00
fgets error
This commit is contained in:
+1
-2
@@ -1390,8 +1390,7 @@ com_edit(wordlist *wl)
|
|||||||
|
|
||||||
fprintf(cp_out, "run circuit? ");
|
fprintf(cp_out, "run circuit? ");
|
||||||
fflush(cp_out);
|
fflush(cp_out);
|
||||||
fgets(buf, BSIZE_SP, stdin);
|
if (fgets(buf, BSIZE_SP, stdin) == (char *) NULL || buf[0] != 'n') {
|
||||||
if (buf[0] != 'n') {
|
|
||||||
fprintf(cp_out, "running circuit\n");
|
fprintf(cp_out, "running circuit\n");
|
||||||
com_run(NULL);
|
com_run(NULL);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user