From: Carl Worth Date: Wed, 21 Oct 2009 17:12:11 +0000 (-0700) Subject: notmuch dump: Fix buffer overrun in error message. X-Git-Tag: 0.1~797 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0e914d9e9646349976c16472be9e986ad4b3e29e;p=notmuch.git notmuch dump: Fix buffer overrun in error message. Just a little bug I noticed while editing nearby code. --- 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; }