1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00

gets() -> fgets(). Closes PR ports/2765.

Submitted by:	Marc Slemko <marcs@znep.com>
This commit is contained in:
Satoshi Asami 1997-03-02 13:34:28 +00:00
parent 44b23b4d75
commit 4f9ad341f6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=5791

19
net/gopher/files/patch-ac Normal file
View File

@ -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;