diff options
author | cjh <cjh@FreeBSD.org> | 2000-07-05 02:26:18 +0800 |
---|---|---|
committer | cjh <cjh@FreeBSD.org> | 2000-07-05 02:26:18 +0800 |
commit | a56e9d01f249b7afd00b220f4cd60b466fa063eb (patch) | |
tree | 33298c83ade8b46b12eda0a828457f90babb5260 /korean | |
parent | e985ebb55756dc95c855cf4b552a2704549bb8cd (diff) | |
download | freebsd-ports-gnome-a56e9d01f249b7afd00b220f4cd60b466fa063eb.tar.gz freebsd-ports-gnome-a56e9d01f249b7afd00b220f4cd60b466fa063eb.tar.zst freebsd-ports-gnome-a56e9d01f249b7afd00b220f4cd60b466fa063eb.zip |
Remove patch-aa and add patch-ba.
patch-ba is for building in FreeBSD.
Diffstat (limited to 'korean')
-rw-r--r-- | korean/hanIM/files/patch-ba | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/korean/hanIM/files/patch-ba b/korean/hanIM/files/patch-ba new file mode 100644 index 000000000000..7552b2773f1a --- /dev/null +++ b/korean/hanIM/files/patch-ba @@ -0,0 +1,44 @@ +--- XuiPrefer.c.orig Thu Feb 17 05:44:20 2000 ++++ XuiPrefer.c Tue Jul 4 02:17:27 2000 +@@ -63,10 +63,12 @@ + FILE *fp; + char filename[BUFSIZ]; + int found = 0; +- char *line, *optstart; +- int line_length; ++ /*char *line, *optstart;*/ ++ char *optstart; ++ char line[BUFSIZ]; ++ /*int line_length;*/ + int name_length; +- size_t line_allocated; ++ /*size_t line_allocated;*/ + + strcpy(value, def); + +@@ -76,11 +78,11 @@ + return; + + /* Check each line to see if we have this entry already. */ +- line = NULL; +- line_allocated = 0; ++ /*line = NULL; ++ line_allocated = 0;*/ + name_length = strlen(name); + +- while ((line_length = getline(&line, &line_allocated, fp)) >= 0) ++ while (fgets(line, BUFSIZ, fp)) + { + /* skip over comment lines */ + if (line[0] == '#') +@@ -104,8 +106,8 @@ + strcpy(value, optstart); + } + } +- if (line != NULL) +- free(line); ++ /*if (line != NULL) ++ free(line);*/ + + return (Boolean)found; + } |