Permalink
Browse files

Fix bug in Parrot_io_readline_s()

io_verify_has_read_buffer() expects a flags argument, not the buffer size
  • Loading branch information...
gerdr committed Mar 13, 2013
1 parent aa8122d commit bf0701abf61881b12a5e529420d0dde5432854be
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/io/api.c
View
@@ -960,7 +960,7 @@ Parrot_io_readline_s(PARROT_INTERP, ARGMOD(PMC *handle), ARGIN(STRING * terminat
io_verify_is_open_for(interp, handle, vtable, PIO_F_READ);
if (read_buffer == NULL)
- read_buffer = io_verify_has_read_buffer(interp, handle, vtable, BUFFER_SIZE_ANY);
+ read_buffer = io_verify_has_read_buffer(interp, handle, vtable, BUFFER_FLAGS_ANY);
/* Because of the way buffering works, the terminator sequence may be,
at most, one character shorter than half the size of the buffer.

0 comments on commit bf0701a

Please sign in to comment.