From cf6e6157b1189e90a95e94d29d9b43cda1580221 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Tue, 8 Jun 2004 20:27:43 +0000 Subject: [PATCH] Fixed parameter count with -q option --- ChangeLog | 1 + mbfido/mbmsg.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d7a7e25c..82e08008 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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). diff --git a/mbfido/mbmsg.c b/mbfido/mbmsg.c index 2d18d433..6b2cf1a3 100644 --- a/mbfido/mbmsg.c +++ b/mbfido/mbmsg.c @@ -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];