svn commit: r510753 - head/net/tcpview/files

Cy Schubert cy at FreeBSD.org
Mon Sep 2 05:00:39 UTC 2019


Author: cy
Date: Mon Sep  2 05:00:38 2019
New Revision: 510753
URL: https://svnweb.freebsd.org/changeset/ports/510753

Log:
  Use gets_s() as a more appropriate replacement for gets() instead of
  fgets().
  
  PR:		222796
  MFH:		2019Q3

Modified:
  head/net/tcpview/files/patch-hex.c   (contents, props changed)

Modified: head/net/tcpview/files/patch-hex.c
==============================================================================
--- head/net/tcpview/files/patch-hex.c	Mon Sep  2 04:20:01 2019	(r510752)
+++ head/net/tcpview/files/patch-hex.c	Mon Sep  2 05:00:38 2019	(r510753)
@@ -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 ) 


More information about the svn-ports-all mailing list