aboutsummaryrefslogtreecommitdiff
path: root/notmuch.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2009-10-21 10:12:11 -0700
committerCarl Worth <cworth@cworth.org>2009-10-21 10:12:11 -0700
commit0e914d9e9646349976c16472be9e986ad4b3e29e (patch)
tree8ef2f5f2261b6295f8ae65831c3d26248f48afc0 /notmuch.c
parentd29a6ec79167e87e4958d9500956668c430db4c6 (diff)
notmuch dump: Fix buffer overrun in error message.
Just a little bug I noticed while editing nearby code.
Diffstat (limited to 'notmuch.c')
-rw-r--r--notmuch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/notmuch.c b/notmuch.c
index a93df82..e157f02 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;
}