Commit b4dc2c07 authored by Max Kellermann's avatar Max Kellermann

test/run_filter: move the buffer into the loop

parent d7838950
......@@ -62,8 +62,6 @@ LoadFilter(const ConfigData &config, const char *name)
int main(int argc, char **argv)
try {
char buffer[4096];
if (argc < 3 || argc > 4) {
fprintf(stderr, "Usage: run_filter CONFIG NAME [FORMAT] <IN\n");
return EXIT_FAILURE;
......@@ -98,6 +96,8 @@ try {
/* play */
while (true) {
char buffer[4096];
ssize_t nbytes;
nbytes = read(0, buffer, sizeof(buffer));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment