notmuch dump: Fix buffer overrun in error message.

Just a little bug I noticed while editing nearby code.
This commit is contained in:
Carl Worth 2009-10-21 10:12:11 -07:00
parent d29a6ec791
commit 0e914d9e96

View file

@ -384,7 +384,7 @@ dump_command (int argc, char *argv[])
output = fopen (argv[0], "w");
if (output == NULL) {
fprintf (stderr, "Error opening %s for writing: %s\n",
argv[1], strerror (errno));
argv[0], strerror (errno));
ret = 1;
goto DONE;
}