1.1 --- a/templates/native.c Tue Dec 06 20:35:50 2016 +0100
1.2 +++ b/templates/native.c Tue Dec 06 21:26:58 2016 +0100
1.3 @@ -664,6 +664,9 @@
1.4
1.5 if (f == NULL)
1.6 __raise_io_error(__new_int(errno));
1.7 +
1.8 + /* Return the __data__ attribute. */
1.9 +
1.10 else
1.11 {
1.12 attr.context = 0;
1.13 @@ -680,7 +683,7 @@
1.14 int i = __load_via_object(fd->value, __pos___data__).intvalue;
1.15 /* n.__data__ interpreted as int */
1.16 int to_read = __load_via_object(n->value, __pos___data__).intvalue;
1.17 - void *buf[to_read + 1];
1.18 + void buf[to_read];
1.19 ssize_t have_read;
1.20 char *s;
1.21