aboutsummaryrefslogtreecommitdiffstats
path: root/shells
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2010-05-30 22:36:13 +0800
committerknu <knu@FreeBSD.org>2010-05-30 22:36:13 +0800
commit40b89977e6b6506bf198e5330f3128da0207181f (patch)
treeac6da58db6d8e5c2d19f55fa7dc517bc4d022607 /shells
parent606ae160e46f4019fa55cb1e46eda88afa9e4748 (diff)
downloadfreebsd-ports-gnome-40b89977e6b6506bf198e5330f3128da0207181f.tar.gz
freebsd-ports-gnome-40b89977e6b6506bf198e5330f3128da0207181f.tar.zst
freebsd-ports-gnome-40b89977e6b6506bf198e5330f3128da0207181f.zip
This is the patch.
Diffstat (limited to 'shells')
-rw-r--r--shells/fd/files/patch-string.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/shells/fd/files/patch-string.c b/shells/fd/files/patch-string.c
new file mode 100644
index 000000000000..c8c4348be1e2
--- /dev/null
+++ b/shells/fd/files/patch-string.c
@@ -0,0 +1,15 @@
+diff -ur ../old/FD-3.00f/string.c ./string.c
+--- ../old/FD-3.00f/string.c Sat May 29 00:00:00 2010
++++ ./string.c Sat May 29 19:52:52 2010
+@@ -43,7 +43,10 @@
+ {
+ for (; n-- > 0; s++) {
+ if (*s == c) return((char *)s);
+- else if (iswchar(s, 0)) s++;
++ else if (iswchar(s, 0)) {
++ if (n-- <= 0) break;
++ s++;
++ }
+ }
+
+ return(NULL);