]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - net.c
fd: Make write_all() receive the length by value.
[paraslash.git] / net.c
diff --git a/net.c b/net.c
index 49026db0ec91a7b4a1d3d0917723720eb8d0ba30..d32cc7eeb611279d936ef8cfd98dda644f06d799 100644 (file)
--- a/net.c
+++ b/net.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.
  */
@@ -705,7 +705,7 @@ int send_bin_buffer(int fd, const char *buf, size_t len)
 {
        if (!len)
                PARA_CRIT_LOG("len == 0\n");
-       return write_all(fd, buf, &len);
+       return write_all(fd, buf, len);
 }
 
 /**