diff --git a/lightningd/invoice.c b/lightningd/invoice.c index 162bf4475..109fbf9b4 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 "