summaryrefslogtreecommitdiff
path: root/lang/js/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'lang/js/patches/patch-aa')
-rw-r--r--lang/js/patches/patch-aa22
1 files changed, 22 insertions, 0 deletions
diff --git a/lang/js/patches/patch-aa b/lang/js/patches/patch-aa
new file mode 100644
index 00000000000..d3c295d9e81
--- /dev/null
+++ b/lang/js/patches/patch-aa
@@ -0,0 +1,22 @@
+$NetBSD: patch-aa,v 1.1 2007/05/01 11:07:45 rillig Exp $
+
+--- src/iostream.c.orig 1998-11-25 10:06:10.000000000 +0200
++++ src/iostream.c
+@@ -233,7 +233,7 @@ js_iostream_read (JSIOStream *stream, vo
+
+ stream->bufpos += got;
+ size -= got;
+- (unsigned char *) ptr += got;
++ ptr = (unsigned char *) ptr + got;
+ total += got;
+ }
+ else
+@@ -290,7 +290,7 @@ js_iostream_write (JSIOStream *stream, v
+ stream->data_in_buf += space;
+ total += space;
+ size -= space;
+- (unsigned char *) ptr += space;
++ ptr = (unsigned char *) ptr + space;
+
+ /* Now the buffer contains buffered write data. */
+ stream->writep = 1;