mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
Prevent collision with getline(3)
This commit is contained in:
parent
36212b99fc
commit
957086cfe8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=415143
20
x11-wm/selectwm/files/patch-src_options.c
Normal file
20
x11-wm/selectwm/files/patch-src_options.c
Normal file
@ -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, ":")) {
|
Loading…
Reference in New Issue
Block a user