Fixed parameter count with -q option

This commit is contained in:
Michiel Broek 2004-06-08 20:27:43 +00:00
parent 03c4291cf0
commit cf6e6157b1
2 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@ v0.61.0 06-Jun-2004.
updated and the mailout semafore is not set.
Added checks in the mbmsg post command if the To parameter has
the correct syntax for netmail and all other areas.
Fixed parameter count if post is used with the -q option.
mbout:
Prepared for ICM flag (FSP-1033).

View File

@ -117,7 +117,7 @@ int main(int argc, char **argv)
if (strncasecmp(argv[i], "pa", 2) == 0)
do_pack = TRUE;
if (strncasecmp(argv[i], "po", 2) == 0) {
if ((argc - i) != 6)
if (((argc - i) < 6) || ((argc - i) > 7))
Help();
do_post = TRUE;
too = argv[++i];