X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-reply.c;h=7ac879f94419aa4d7783a0cb6d0be8912baad79b;hp=8f23cea23129108e7abf3985950f65bb43eed225;hb=430fb27b3ef3a3c527084630d213db76be255e8e;hpb=fbe3c38655d4eaf0e263ec4cfa7e206174152748 diff --git a/notmuch-reply.c b/notmuch-reply.c index 8f23cea2..7ac879f9 100644 --- a/notmuch-reply.c +++ b/notmuch-reply.c @@ -628,6 +628,8 @@ notmuch_reply_command (void *ctx, int argc, char *argv[]) params.part = -1; params.cryptoctx = NULL; + argc--; argv++; /* skip subcommand argument */ + for (i = 0; i < argc && argv[i][0] == '-'; i++) { if (strcmp (argv[i], "--") == 0) { i++;