From owner-svn-ports-all@freebsd.org Fri Sep 6 15:41:16 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 67A92F660C; Fri, 6 Sep 2019 15:41:16 +0000 (UTC) (envelope-from kai@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 46Q1xS2C0Gz4VHp; Fri, 6 Sep 2019 15:41:16 +0000 (UTC) (envelope-from kai@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 3032C1F04C; Fri, 6 Sep 2019 15:41:16 +0000 (UTC) (envelope-from kai@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x86FfGPS020101; Fri, 6 Sep 2019 15:41:16 GMT (envelope-from kai@FreeBSD.org) Received: (from kai@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x86FfFYU020097; Fri, 6 Sep 2019 15:41:15 GMT (envelope-from kai@FreeBSD.org) Message-Id: <201909061541.x86FfFYU020097@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kai set sender to kai@FreeBSD.org using -f From: Kai Knoblich Date: Fri, 6 Sep 2019 15:41:15 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r511321 - in head/vietnamese/vnconvert: . files X-SVN-Group: ports-head X-SVN-Commit-Author: kai X-SVN-Commit-Paths: in head/vietnamese/vnconvert: . files X-SVN-Commit-Revision: 511321 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: Fri, 06 Sep 2019 15:41:16 -0000 Author: kai Date: Fri Sep 6 15:41:15 2019 New Revision: 511321 URL: https://svnweb.freebsd.org/changeset/ports/511321 Log: vietnamese/vnconvert: Replace gets(3) with gets_s(3) The long deprecated and unsafe gets(3) function has been removed since FreeBSD 1300043. Thus replace the occurences of that function in the code with gets_s(3) which is a safer alternative. * Bump PORTREVISION due to changes in the code/package. PR: 238687 Reported by: emaste MFH: 2019Q3 Added: head/vietnamese/vnconvert/files/patch-vnconvert.c (contents, props changed) Modified: head/vietnamese/vnconvert/Makefile Modified: head/vietnamese/vnconvert/Makefile ============================================================================== --- head/vietnamese/vnconvert/Makefile Fri Sep 6 15:00:44 2019 (r511320) +++ head/vietnamese/vnconvert/Makefile Fri Sep 6 15:41:15 2019 (r511321) @@ -3,6 +3,7 @@ PORTNAME= vnconvert PORTVERSION= 1.0 +PORTREVISION= 1 CATEGORIES= vietnamese MASTER_SITES= LOCAL/obrien DISTNAME= convert Added: head/vietnamese/vnconvert/files/patch-vnconvert.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/vietnamese/vnconvert/files/patch-vnconvert.c Fri Sep 6 15:41:15 2019 (r511321) @@ -0,0 +1,45 @@ +--- vnconvert.c.orig 1994-05-20 20:36:17 UTC ++++ vnconvert.c +@@ -91,7 +91,7 @@ main() + printf("\t6 - VN Thin-Art (Mac)\n\n"); + + printf("Input-file name (or Enter to quit): "); +- gets(bufline); ++ gets_s(bufline, 255); + if (strlen(bufline) == 0) + break; + sscanf(bufline, "%s", input_file); +@@ -99,21 +99,21 @@ main() + printf("currently in the format number: "); + *bufline = '\0'; + while (strlen(bufline)==0) { +- gets(bufline); ++ gets_s(bufline, 255); + sscanf(bufline, "%d", &from); + } + + printf("\nOutput-file name: "); + *bufline = '\0'; + while (strlen(bufline)==0) { +- gets(bufline); ++ gets_s(bufline, 255); + sscanf(bufline, "%s", output_file); + } + + printf("to the format number: "); + *bufline = '\0'; + while (strlen(bufline)==0) { +- gets(bufline); ++ gets_s(bufline, 255); + sscanf(bufline, "%d", &to); + } + +@@ -152,7 +152,7 @@ main() + } + else { + fprintf(stderr, "\"%s\" already exists. Overwrite it (y/n)? ", output_file); +- gets(buf); ++ gets_s(buf, BUFSIZ); + if (toupper(buf[0]) != 'Y') + icontinue = 1; + }