Use gets_s() as a more appropriate replacement for gets() instead of

fgets().

PR:		222796
MFH:		2019Q3
This commit is contained in:
Cy Schubert 2019-09-02 05:00:38 +00:00
parent c5b86c13ea
commit 951e98a56e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=510753

View file

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