diff options
-rw-r--r-- | devel/gonzui/files/patch-langscan-c-c.c | 15 | ||||
-rw-r--r-- | devel/gonzui/files/patch-langscan-java-java.c | 15 |
2 files changed, 30 insertions, 0 deletions
diff --git a/devel/gonzui/files/patch-langscan-c-c.c b/devel/gonzui/files/patch-langscan-c-c.c new file mode 100644 index 0000000..5460160 --- /dev/null +++ b/devel/gonzui/files/patch-langscan-c-c.c @@ -0,0 +1,15 @@ +--- langscan/c/c.c.orig Wed Nov 10 18:18:20 2004 ++++ langscan/c/c.c Sat Jan 22 15:06:38 2005 +@@ -29,11 +29,11 @@ + + static size_t user_read_io(void **user_data_p, char *buf, size_t maxlen) + { ++ size_t len = maxlen; + VALUE user_io = (VALUE)*user_data_p; + VALUE str = rb_funcall(user_io, id_read, 1, INT2NUM(maxlen)); + if (NIL_P(str)) + return 0; +- size_t len = maxlen; + StringValue(str); + if (RSTRING(str)->len < len) + len = RSTRING(str)->len; diff --git a/devel/gonzui/files/patch-langscan-java-java.c b/devel/gonzui/files/patch-langscan-java-java.c new file mode 100644 index 0000000..5d0fd4e --- /dev/null +++ b/devel/gonzui/files/patch-langscan-java-java.c @@ -0,0 +1,15 @@ +--- langscan/java/java.c.orig Fri Nov 26 03:08:01 2004 ++++ langscan/java/java.c Sat Jan 22 15:06:38 2005 +@@ -29,11 +29,11 @@ + + static size_t user_read_io(void **user_data_p, char *buf, size_t maxlen) + { ++ size_t len = maxlen; + VALUE user_io = (VALUE)*user_data_p; + VALUE str = rb_funcall(user_io, id_read, 1, INT2NUM(maxlen)); + if (NIL_P(str)) + return 0; +- size_t len = maxlen; + StringValue(str); + if (RSTRING(str)->len < len) + len = RSTRING(str)->len; |