Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 May 2016 16:55:23 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r415642 - head/print/t1utils/files
Message-ID:  <201605221655.u4MGtNZD052848@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Sun May 22 16:55:23 2016
New Revision: 415642
URL: https://svnweb.freebsd.org/changeset/ports/415642

Log:
  Prevent collision with getline(3)

Added:
  head/print/t1utils/files/
  head/print/t1utils/files/patch-t1asm.c   (contents, props changed)

Added: head/print/t1utils/files/patch-t1asm.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/print/t1utils/files/patch-t1asm.c	Sun May 22 16:55:23 2016	(r415642)
@@ -0,0 +1,29 @@
+--- t1asm.c.orig	2004-01-24 02:28:23 UTC
++++ t1asm.c
+@@ -280,7 +280,7 @@ static int check_line_charstring()
+    the newline is put into line[]. When terminated by '{', the '{' is not put
+    into line[], and the flag start_charstring is set to 1. */
+ 
+-static void getline()
++static void get_line()
+ {
+   int c;
+   char *p = line;
+@@ -725,7 +725,7 @@ particular purpose.\n");
+      without /Subrs sections and provided a patch. */
+   
+   while (!feof(ifp) && !ferror(ifp)) {
+-    getline();
++    get_line();
+     
+     if (!ever_active) {
+       if (strncmp(line, "currentfile eexec", 17) == 0 && isspace(line[17])) {
+@@ -796,7 +796,7 @@ particular purpose.\n");
+   
+   /* There may be additional code. */
+   while (!feof(ifp) && !ferror(ifp)) {
+-    getline();
++    get_line();
+     eexec_string(line);
+   }
+   



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