aboutsummaryrefslogtreecommitdiff
path: root/shells
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2010-05-30 14:36:13 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2010-05-30 14:36:13 +0000
commit8069545e490dcfca94296a0ff265cef9e3ff05a4 (patch)
treea101e1fb1441f2c46f9de5abf470bd64dbe01f8b /shells
parent105ee8a74e408b19919bab2881f4a783ed5e9831 (diff)
downloadports-8069545e490dcfca94296a0ff265cef9e3ff05a4.tar.gz
ports-8069545e490dcfca94296a0ff265cef9e3ff05a4.zip
This is the patch.
Notes
Notes: svn path=/head/; revision=255322
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);