From 5c38e5a08fbf15cc4a7e31ef1a017b580b11a4c6 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Mon, 20 Sep 2021 14:00:03 +0200 Subject: [PATCH] invoice: Fix mismatch between ">=" and "greated than" in error msg --- lightningd/invoice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightningd/invoice.c b/lightningd/invoice.c index 162bf4475b5e..109fbf9b49c0 100644 --- a/lightningd/invoice.c +++ b/lightningd/invoice.c @@ -1163,7 +1163,7 @@ static struct command_result *json_invoice(struct command *cmd, INVOICE_MAX_LABEL_LEN); } - if (strlen(desc_val) >= BOLT11_FIELD_BYTE_LIMIT) { + if (strlen(desc_val) > BOLT11_FIELD_BYTE_LIMIT) { return command_fail(cmd, JSONRPC2_INVALID_PARAMS, "Descriptions greater than %d bytes " "not yet supported "