diff options
Diffstat (limited to 'mixlib')
-rw-r--r-- | mixlib/mix_io.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mixlib/mix_io.c b/mixlib/mix_io.c index 893449c..8f3fb5d 100644 --- a/mixlib/mix_io.c +++ b/mixlib/mix_io.c @@ -170,7 +170,6 @@ mix_io_write_word_array_as_char (mix_iochannel_t *ioc, if ((ioc == NULL) || (w == NULL)) return FALSE; - printf ("->\n"); for (k = 0; k < s; k++) for (j = 1; j < 6; j++) { @@ -197,7 +196,7 @@ mix_io_read_word_array_as_char (mix_iochannel_t *ioc, for (j = 1; j < 6; j++) { if (!eol && !read_data_ (ioc, &value, 1)) return FALSE; - eol = eol || (value == '\n') || (value == EOF); + eol = eol || (value == '\n') || is_eof_ (ioc); mix_word_set_byte (&w[k], j, eol? spc : mix_ascii_to_char (value)); } for (; k < s; ++k) w[k] = MIX_WORD_ZERO; |