]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - audioc.c
fd: Let write_all() return an error on short writes.
[paraslash.git] / audioc.c
index 52c2bd3ae5b8d1c5f108c35b35447900362557f6..84c2a39472f6fcf58f7c6fecf62e752d35d1a098 100644 (file)
--- a/audioc.c
+++ b/audioc.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2005-2011 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2005-2012 Andre Noll <maan@systemlinux.org>
  *
  * Licensed under the GPL v2. For licencing details see COPYING.
  */
@@ -339,7 +339,7 @@ int main(int argc, char *argv[])
                size_t n = ret = recv_bin_buffer(fd, buf, bufsize);
                if (ret <= 0)
                        break;
-               ret = write_all(STDOUT_FILENO, buf, &n);
+               ret = write_all(STDOUT_FILENO, buf, n);
        } while (ret >= 0);
 out:
        if (ret < 0)