1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

gpg: Fix comparison.

* g10/gpgcompose.c (literal_name): Complain if passed zero arguments,
not one or fewer.

Signed-off-by: Neal H. Walfield <neal@walfield.org>
This commit is contained in:
Neal H. Walfield 2017-10-06 11:51:39 +02:00
parent 98c260e057
commit 1ed21eee79

View File

@ -2746,7 +2746,7 @@ literal_name (const char *option, int argc, char *argv[], void *cookie)
{ {
struct litinfo *li = cookie; struct litinfo *li = cookie;
if (argc <= 1) if (argc <= 0)
log_fatal ("Usage: %s NAME\n", option); log_fatal ("Usage: %s NAME\n", option);
if (strlen (argv[0]) > 255) if (strlen (argv[0]) > 255)