diff options
author | Cy Schubert <cy@FreeBSD.org> | 2019-09-02 05:00:38 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2019-09-02 05:00:38 +0000 |
commit | 951e98a56e1b79d905ffeffe253ee95689b2ff42 (patch) | |
tree | 8c81ceed43037ff9cd1da23781624511463eb691 | |
parent | New port: misc/iio-oscilloscope: Oscilloscope application for interfacing wit... (diff) |
Use gets_s() as a more appropriate replacement for gets() instead of
fgets().
PR: 222796
MFH: 2019Q3
-rw-r--r-- | net/tcpview/files/patch-hex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tcpview/files/patch-hex.c b/net/tcpview/files/patch-hex.c index 3543ab5eb51c..fd8d11ee97ba 100644 --- a/net/tcpview/files/patch-hex.c +++ b/net/tcpview/files/patch-hex.c @@ -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 ) |