diff options
author | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-28 23:33:47 +0000 |
---|---|---|
committer | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-28 23:33:47 +0000 |
commit | a14c0668720dcafde3f60b7659a01d99ec693a41 (patch) | |
tree | 9c1a149bc961f7cd84b7aa93a2d61fec3d0f9685 /math/physcalc/files/patch-physmain.c | |
parent | Rename mail/ patch-xy patches to reflect the files they modify. (diff) |
Rename math/ patch-xy patches to reflect the files they modify.
Diffstat (limited to 'math/physcalc/files/patch-physmain.c')
-rw-r--r-- | math/physcalc/files/patch-physmain.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/math/physcalc/files/patch-physmain.c b/math/physcalc/files/patch-physmain.c new file mode 100644 index 000000000000..c76d57866f58 --- /dev/null +++ b/math/physcalc/files/patch-physmain.c @@ -0,0 +1,21 @@ +--- physmain.c.orig 1998-08-30 14:48:34.000000000 -0500 ++++ physmain.c 2009-06-25 22:32:46.000000000 -0500 +@@ -227,7 +227,7 @@ + printf("Replace %s = ",v->name); + printexpr(v->value); + printf(" ?"); +- gets(answer); ++ fgets(answer, sizeof(answer), stdin); + printf("\n"); + } else + answer[0] = 'Y'; +@@ -711,7 +711,8 @@ + } else + while (TRUE) { + printf(">"); +- gets(buf); ++ if(fgets(buf, sizeof(buf), stdin) == NULL) ++ exit(0); + do_cmd(buf); + } + } |