summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2001-05-09 23:16:48 +0000
committerJose Antonio Ortega Ruiz <jao@gnu.org>2001-05-09 23:16:48 +0000
commit5c3b1e579c8b7ab1a342a18d50d70898aadd306f (patch)
tree193654b433497b28526525e288f2db24470bf6c0
parentd6c479e6fc395506d86e4e3d5b48f2b709cc243f (diff)
downloadmdk-5c3b1e579c8b7ab1a342a18d50d70898aadd306f.tar.gz
mdk-5c3b1e579c8b7ab1a342a18d50d70898aadd306f.tar.bz2
(mix_io_write_*_array) bug corrected
-rw-r--r--mixlib/mix_io.c4
-rw-r--r--mixlib/xmix_device.c2
-rw-r--r--mixlib/xmix_io.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/mixlib/mix_io.c b/mixlib/mix_io.c
index 704a5c0..4a19abb 100644
--- a/mixlib/mix_io.c
+++ b/mixlib/mix_io.c
@@ -110,7 +110,7 @@ mix_io_write_word_array (mix_iochannel_t *ioc, const mix_word_t *w,
{
g_return_val_if_fail (ioc != NULL, FALSE);
g_return_val_if_fail (w != NULL, FALSE);
- return write_data_ (ioc, &w, s);
+ return write_data_ (ioc, w, s);
}
mix_word_t
@@ -143,7 +143,7 @@ mix_io_write_short_array (mix_iochannel_t *ioc, const mix_short_t *w,
{
g_return_val_if_fail (ioc != NULL, FALSE);
g_return_val_if_fail (w != NULL, FALSE);
- return write_data_ (ioc, &w, s);
+ return write_data_ (ioc, w, s);
}
mix_short_t
diff --git a/mixlib/xmix_device.c b/mixlib/xmix_device.c
index db343ad..b0ec547 100644
--- a/mixlib/xmix_device.c
+++ b/mixlib/xmix_device.c
@@ -1,7 +1,7 @@
/* -*-c-*- -------------- xmix_device.c :
* Implementation of the functions declared in xmix_device.h
* ------------------------------------------------------------------
- * Last change: Time-stamp: "2001-05-07 23:49:31 jao"
+ * Last change: Time-stamp: "2001-05-10 01:10:25 jao"
* ------------------------------------------------------------------
* Copyright (C) 2001 Free Software Foundation, Inc.
*
diff --git a/mixlib/xmix_io.c b/mixlib/xmix_io.c
index 7511949..075b185 100644
--- a/mixlib/xmix_io.c
+++ b/mixlib/xmix_io.c
@@ -25,7 +25,7 @@
#include <fcntl.h>
#include "xmix_io.h"
-const char *io_OPENTYPE_[5] = { "r", "w", "w+", "a", "a+" };
+const char *io_OPENTYPE_[5] = { "r", "w", "r+", "a", "a+" };
/* initialise a mix_iochannel from a file descriptor */
@@ -47,7 +47,7 @@ io_init_from_fdesc_(mix_iochannel_t *ioc, int fdesc)
file = fdopen(fdesc, fmode_to_type_(mode));
g_return_val_if_fail(file != NULL, FALSE);
-
+ if (mode == mix_io_RDWRT) rewind (file);
io_init_from_file_(ioc, file);
return TRUE;