mirror of
https://github.com/postgres/postgres.git
synced 2026-06-05 06:43:00 -04:00
Fix "too many arguments" messages not to index off the end of argv[].
This affects initdb, clusterdb, reindexdb, and vacuumdb in master and 9.2; in earlier branches, only initdb is affected.
This commit is contained in:
parent
18730f8d47
commit
e40b20a368
1 changed files with 1 additions and 1 deletions
|
|
@ -2654,7 +2654,7 @@ main(int argc, char *argv[])
|
|||
if (optind < argc)
|
||||
{
|
||||
fprintf(stderr, _("%s: too many command-line arguments (first is \"%s\")\n"),
|
||||
progname, argv[optind + 1]);
|
||||
progname, argv[optind]);
|
||||
fprintf(stderr, _("Try \"%s --help\" for more information.\n"),
|
||||
progname);
|
||||
exit(1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue