summaryrefslogtreecommitdiff
path: root/lang/ruby18-base/patches/patch-es
diff options
context:
space:
mode:
Diffstat (limited to 'lang/ruby18-base/patches/patch-es')
-rw-r--r--lang/ruby18-base/patches/patch-es15
1 files changed, 15 insertions, 0 deletions
diff --git a/lang/ruby18-base/patches/patch-es b/lang/ruby18-base/patches/patch-es
new file mode 100644
index 00000000000..f0cc1bc5c9e
--- /dev/null
+++ b/lang/ruby18-base/patches/patch-es
@@ -0,0 +1,15 @@
+$NetBSD: patch-es,v 1.1 2010/09/10 03:29:01 taca Exp $
+
+* r26140: (strio_getline): fix for "" as separator.
+
+--- ext/stringio/stringio.c.orig 2009-12-24 08:54:26.000000000 +0000
++++ ext/stringio/stringio.c
+@@ -933,7 +933,7 @@ strio_getline(argc, argv, ptr)
+ s = p;
+ while ((p = memchr(p, '\n', e - p)) && (p != e)) {
+ if (*++p == '\n') {
+- e = p;
++ e = p + 1;
+ break;
+ }
+ }