Commit a6ecf6c9 authored by Max Kellermann's avatar Max Kellermann

test/run_filter: move the buffer into the loop

parent cb100f2e
......@@ -61,8 +61,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;
......@@ -97,6 +95,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