From 0e914d9e9646349976c16472be9e986ad4b3e29e Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Wed, 21 Oct 2009 10:12:11 -0700 Subject: [PATCH] notmuch dump: Fix buffer overrun in error message. Just a little bug I noticed while editing nearby code. --- notmuch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notmuch.c b/notmuch.c index a93df823..e157f02f 100644 --- a/notmuch.c +++ b/notmuch.c @@ -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; } -- 2.43.0