invoice: Fix mismatch between ">=" and "greated than" in error msg

This commit is contained in:
Christian Decker 2021-09-20 14:00:03 +02:00 committed by Rusty Russell
parent 910e79ddb5
commit 5c38e5a08f

View file

@ -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 "