summaryrefslogtreecommitdiffhomepage
path: root/mixlib
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2004-06-12 14:31:32 +0000
committerJose Antonio Ortega Ruiz <jao@gnu.org>2004-06-12 14:31:32 +0000
commita6cb32c9a4d8dc8643a3c81d06c7087e7df4d71f (patch)
tree1562f1e5779046d7666e8e09495a4009f5ff7d5b /mixlib
parent6a795d0aa63f62a6564d2b4cc99f3a8e23a12c92 (diff)
downloadmdk-a6cb32c9a4d8dc8643a3c81d06c7087e7df4d71f.tar.gz
mdk-a6cb32c9a4d8dc8643a3c81d06c7087e7df4d71f.tar.bz2
(mix_io_write_word_array_as_char): drop bogus EOF comparison.
Diffstat (limited to 'mixlib')
-rw-r--r--mixlib/mix_io.c3
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;