diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2010-05-30 14:36:13 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2010-05-30 14:36:13 +0000 |
commit | 8069545e490dcfca94296a0ff265cef9e3ff05a4 (patch) | |
tree | a101e1fb1441f2c46f9de5abf470bd64dbe01f8b /shells/fd | |
parent | 105ee8a74e408b19919bab2881f4a783ed5e9831 (diff) | |
download | ports-8069545e490dcfca94296a0ff265cef9e3ff05a4.tar.gz ports-8069545e490dcfca94296a0ff265cef9e3ff05a4.zip |
Notes
Diffstat (limited to 'shells/fd')
-rw-r--r-- | shells/fd/files/patch-string.c | 15 |
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); |