From owner-svn-ports-all@freebsd.org Mon Oct 9 16:58:46 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DD052E3640D; Mon, 9 Oct 2017 16:58:46 +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 mx1.freebsd.org (Postfix) with ESMTPS id 4A6A36DB9A; Mon, 9 Oct 2017 16:58:46 +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 v99GwjJT076329; Mon, 9 Oct 2017 16:58:45 GMT (envelope-from cy@FreeBSD.org) Received: (from cy@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v99GwjlO076327; Mon, 9 Oct 2017 16:58:45 GMT (envelope-from cy@FreeBSD.org) Message-Id: <201710091658.v99GwjlO076327@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: cy set sender to cy@FreeBSD.org using -f From: Cy Schubert Date: Mon, 9 Oct 2017 16:58:45 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r451623 - in head/net/tcpview: . files X-SVN-Group: ports-head X-SVN-Commit-Author: cy X-SVN-Commit-Paths: in head/net/tcpview: . files X-SVN-Commit-Revision: 451623 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.23 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, 09 Oct 2017 16:58:47 -0000 Author: cy Date: Mon Oct 9 16:58:44 2017 New Revision: 451623 URL: https://svnweb.freebsd.org/changeset/ports/451623 Log: Use fgets() instead of gets(). The approach I used was to create a "poor man's" gets macro as an example. Though not the same as gets() it approximates gets() well enough. We might want to consider this approach in base. This is for ttps://reviews.freebsd.org/D12298. PR: 222796 Requested by: emaste Added: head/net/tcpview/files/patch-hex.c (contents, props changed) Modified: head/net/tcpview/Makefile (contents, props changed) Modified: head/net/tcpview/Makefile ============================================================================== --- head/net/tcpview/Makefile Mon Oct 9 15:57:15 2017 (r451622) +++ head/net/tcpview/Makefile Mon Oct 9 16:58:44 2017 (r451623) @@ -3,7 +3,7 @@ PORTNAME= tcpview PORTVERSION= 1.0 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= net MASTER_SITES= ftp://ftp.cac.washington.edu/pub/noc-tools/tcpview/ Added: head/net/tcpview/files/patch-hex.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/tcpview/files/patch-hex.c Mon Oct 9 16:58:44 2017 (r451623) @@ -0,0 +1,10 @@ +--- hex.c.orig 1993-04-22 13:40:04.000000000 -0700 ++++ hex.c 2017-10-06 07:25:01.182767000 -0700 +@@ -85,6 +85,7 @@ + char *s; + + do { ++#define gets(a) fgets(a,sizeof(a),stdin) + if( gets(str) == NULL ) + return NULL; + if( *str != '\t' && *str != ' ' && PrintFrames )