projects
/
notmuch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d29a6ec
)
notmuch dump: Fix buffer overrun in error message.
author
Carl Worth
<cworth@cworth.org>
Wed, 21 Oct 2009 17:12:11 +0000
(10:12 -0700)
committer
Carl Worth
<cworth@cworth.org>
Wed, 21 Oct 2009 17:12:11 +0000
(10:12 -0700)
Just a little bug I noticed while editing nearby code.
notmuch.c
patch
|
blob
|
history
diff --git
a/notmuch.c
b/notmuch.c
index a93df8235f605dc55160fe3a57ef963ac82271f7..e157f02f468583f86149032fd18b26f3f0202429 100644
(file)
--- 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;
}