diff options
author | bapt <bapt@FreeBSD.org> | 2016-05-14 03:40:11 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2016-05-14 03:40:11 +0800 |
commit | 791c60da863bd483395e45015a3aad3227ed7d3b (patch) | |
tree | 157e17f738ef98c16fd2d1ab5f728761a2e0a444 | |
parent | e32f566ff5bb794302099a363dce2dcf1faf48bf (diff) | |
download | freebsd-ports-gnome-791c60da863bd483395e45015a3aad3227ed7d3b.tar.gz freebsd-ports-gnome-791c60da863bd483395e45015a3aad3227ed7d3b.tar.zst freebsd-ports-gnome-791c60da863bd483395e45015a3aad3227ed7d3b.zip |
Prevent collision with getline(3)
-rw-r--r-- | x11-wm/selectwm/files/patch-src_options.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/x11-wm/selectwm/files/patch-src_options.c b/x11-wm/selectwm/files/patch-src_options.c new file mode 100644 index 000000000000..33f84bf5e891 --- /dev/null +++ b/x11-wm/selectwm/files/patch-src_options.c @@ -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, ":")) { |