Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 May 2016 19:40:11 +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: r415143 - head/x11-wm/selectwm/files
Message-ID:  <201605131940.u4DJeBct073528@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Fri May 13 19:40:11 2016
New Revision: 415143
URL: https://svnweb.freebsd.org/changeset/ports/415143

Log:
  Prevent collision with getline(3)

Added:
  head/x11-wm/selectwm/files/
  head/x11-wm/selectwm/files/patch-src_options.c   (contents, props changed)

Added: head/x11-wm/selectwm/files/patch-src_options.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11-wm/selectwm/files/patch-src_options.c	Fri May 13 19:40:11 2016	(r415143)
@@ -0,0 +1,20 @@
+--- src/options.c.orig	2002-05-22 17:39:27 UTC
++++ src/options.c
+@@ -32,7 +32,7 @@
+ #include "miscui.h"
+ #include "modify.h"
+ 
+-static GString *getline (FILE *fichier) {
++static GString *get_line (FILE *fichier) {
+ 	GString *temp;
+ 	gchar buf[128];
+ 	
+@@ -64,7 +64,7 @@ static gint read_config_file (config *se
+ 	}
+ 	buf = g_string_new ("");
+ 	while (!feof (config)) {
+-		buf = getline (config);
++		buf = get_line (config);
+ 
+ 		if (buf->len > 0 && buf->str[0] != '#') {
+ 			if (g_strrstr (buf->str, ":")) {



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