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:
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
19
net/gopher/files/patch-ac
Normal 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;
|
Loading…
Reference in New Issue
Block a user