From owner-svn-ports-all@freebsd.org Mon Sep 2 05:00:38 2019 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id F2D3FD0F2A; Mon, 2 Sep 2019 05:00:38 +0000 (UTC) (envelope-from cy@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46MHw660hrz4F7R; Mon, 2 Sep 2019 05:00:38 +0000 (UTC) (envelope-from cy@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B1555CE68; Mon, 2 Sep 2019 05:00:38 +0000 (UTC) (envelope-from cy@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x8250c8x056293; Mon, 2 Sep 2019 05:00:38 GMT (envelope-from cy@FreeBSD.org) Received: (from cy@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x8250c6Y056292; Mon, 2 Sep 2019 05:00:38 GMT (envelope-from cy@FreeBSD.org) Message-Id: <201909020500.x8250c6Y056292@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: cy set sender to cy@FreeBSD.org using -f From: Cy Schubert Date: Mon, 2 Sep 2019 05:00:38 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r510753 - head/net/tcpview/files X-SVN-Group: ports-head X-SVN-Commit-Author: cy X-SVN-Commit-Paths: head/net/tcpview/files X-SVN-Commit-Revision: 510753 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Sep 2019 05:00:39 -0000 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 )