Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Sep 2019 05:00:38 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r510753 - head/net/tcpview/files
Message-ID:  <201909020500.x8250c6Y056292@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 ) 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909020500.x8250c6Y056292>