grab_fd and grab_file: add a size arg, use everywhere.
[ccan] / tools / depends.c
index e8cb53b8394c807aa9ddb6a7ba7a55777a06c38b..06e87c32e248d94223f9a67bb8bbdde9f6383745 100644 (file)
@@ -20,7 +20,7 @@ lines_from_cmd(const void *ctx, unsigned int *num, char *format, ...)
        if (!p)
                err(1, "Executing '%s'", cmd);
 
-       buffer = grab_fd(ctx, fileno(p));
+       buffer = grab_fd(ctx, fileno(p), NULL);
        if (!buffer)
                err(1, "Reading from '%s'", cmd);
        pclose(p);