mirror of
https://github.com/postgres/postgres.git
synced 2026-04-24 23:57:18 -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
1cd2d17ed7
commit
7e21ff3edb
1 changed files with 1 additions and 1 deletions
|
|
@ -2622,7 +2622,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