afh: Use write_all rather than plain write().
[paraslash.git] / afh.c
diff --git a/afh.c b/afh.c
index 8810a28b8dacc83731c40a57f014b2190a3b81ab..b76c72fdab6dbe445b1466de76c4f3dd58e33b92 100644 (file)
--- a/afh.c
+++ b/afh.c
@@ -124,7 +124,7 @@ static int cat_file(struct afh_info *afhi, int audio_format_id,
                        &header, &size);
                if (size > 0) {
                        PARA_INFO_LOG("writing header (%zu bytes)\n", size);
-                       ret = write(STDOUT_FILENO, header, size); /* FIXME */
+                       ret = write_all(STDOUT_FILENO, header, size);
                        afh_free_header(header, audio_format_id);
                        if (ret < 0)
                                return ret;