Skip to content

Commit

Permalink
invoice: Fix mismatch between ">=" and "greated than" in error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
cdecker authored and rustyrussell committed Sep 21, 2021
1 parent 910e79d commit 5c38e5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightningd/invoice.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down

0 comments on commit 5c38e5a

Please sign in to comment.