mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Use gets_s() as a more appropriate replacement for gets() instead of
fgets(). PR: 222796 MFH: 2019Q3
This commit is contained in:
parent
c5b86c13ea
commit
951e98a56e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=510753
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
|||
char *s;
|
||||
|
||||
do {
|
||||
+#define gets(a) fgets(a,sizeof(a),stdin)
|
||||
+#define gets(a) gets_s(a,sizeof(a))
|
||||
if( gets(str) == NULL )
|
||||
return NULL;
|
||||
if( *str != '\t' && *str != ' ' && PrintFrames )
|
||||
|
|
Loading…
Add table
Reference in a new issue