Update to gengetopt 2.22.2.
[paraslash.git] / osx_write.c
index f67a63ac1cae42eea3e7a4776e3b3353aadfedcb..4bdb0ceb9e1ec5c31ac1ea93e64bc2456633f74b 100644 (file)
@@ -19,6 +19,7 @@
 #include "string.h"
 #include "list.h"
 #include "sched.h"
 #include "string.h"
 #include "list.h"
 #include "sched.h"
+#include "ggo.h"
 #include "write.h"
 #include "osx_write.cmdline.h"
 #include "error.h"
 #include "write.h"
 #include "osx_write.cmdline.h"
 #include "error.h"
@@ -278,7 +279,7 @@ static int osx_write_post_select(__a_unused struct sched *s,
 {
        struct private_osx_write_data *powd = wn->private_data;
        struct writer_node_group *wng = wn->wng;
 {
        struct private_osx_write_data *powd = wn->private_data;
        struct writer_node_group *wng = wn->wng;
-       short *data = (short*)wng->buf;
+       short *data = (short*)*wng->bufp;
 
        if (!need_new_buffer(wn))
                return 1;
 
        if (!need_new_buffer(wn))
                return 1;