diff options
author | asami <asami@FreeBSD.org> | 1997-03-02 21:34:28 +0800 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 1997-03-02 21:34:28 +0800 |
commit | 84617a7cc1cf18974e3a26336f32d4299c24bcb4 (patch) | |
tree | 788807beb17980a236ea1636f4d7be6437033d11 /net/gopher | |
parent | c84444e0d42167262a8dbe88d68314b25a9491f8 (diff) | |
download | freebsd-ports-gnome-84617a7cc1cf18974e3a26336f32d4299c24bcb4.tar.gz freebsd-ports-gnome-84617a7cc1cf18974e3a26336f32d4299c24bcb4.tar.zst freebsd-ports-gnome-84617a7cc1cf18974e3a26336f32d4299c24bcb4.zip |
gets() -> fgets(). Closes PR ports/2765.
Submitted by: Marc Slemko <marcs@znep.com>
Diffstat (limited to 'net/gopher')
-rw-r--r-- | net/gopher/files/patch-ac | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/net/gopher/files/patch-ac b/net/gopher/files/patch-ac new file mode 100644 index 000000000000..62d0571d7e2b --- /dev/null +++ b/net/gopher/files/patch-ac @@ -0,0 +1,19 @@ +*** gopher/upload.c.dist Tue Feb 18 17:31:30 1997 +--- gopher/upload.c Tue Feb 18 17:40:22 1997 +*************** +*** 123,129 **** + CURenter(); + return; + } +! while(gets(inputline)) { + ZapCRLF(inputline); + if (strcmp(inputline, ".") == 0) + break; +--- 123,129 ---- + CURenter(); + return; + } +! while(fgets(inputline, 256, stdin)) { + ZapCRLF(inputline); + if (strcmp(inputline, ".") == 0) + break; |