aboutsummaryrefslogtreecommitdiffstats
path: root/net/wmlj
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2016-05-12 05:13:22 +0800
committerbapt <bapt@FreeBSD.org>2016-05-12 05:13:22 +0800
commit1e73f10c6eaddfe54c41cd1317a5d0be0e9bde0a (patch)
tree0c011176d73fb7146529b22adfb6f470aaa9f6a3 /net/wmlj
parent5dc3fadbfa1e860d1ea99447de2e9a2d7a473590 (diff)
downloadfreebsd-ports-gnome-1e73f10c6eaddfe54c41cd1317a5d0be0e9bde0a.tar.gz
freebsd-ports-gnome-1e73f10c6eaddfe54c41cd1317a5d0be0e9bde0a.tar.zst
freebsd-ports-gnome-1e73f10c6eaddfe54c41cd1317a5d0be0e9bde0a.zip
Prevent collision with getline(3)
Diffstat (limited to 'net/wmlj')
-rw-r--r--net/wmlj/files/patch-src_network.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/net/wmlj/files/patch-src_network.c b/net/wmlj/files/patch-src_network.c
new file mode 100644
index 000000000000..8e91ae9cbd33
--- /dev/null
+++ b/net/wmlj/files/patch-src_network.c
@@ -0,0 +1,24 @@
+--- src/network.c.orig 2016-05-11 21:04:11 UTC
++++ src/network.c
+@@ -72,7 +72,7 @@ skipline(char *text) {
+ }
+
+ static char*
+-getline(char *text) {
++get_line(char *text) {
+ int len;
+ char *str;
+
+@@ -113,10 +113,10 @@ parse_response(char *buf) {
+ int read_keys = 0;
+
+ while (*buf) {
+- key = getline(buf);
++ key = get_line(buf);
+ buf = skipline(buf);
+ if (*buf) {
+- val = getline(buf);
++ val = get_line(buf);
+ buf = skipline(buf);
+
+ g_hash_table_insert(hash, g_strdup(key), g_strdup(val));