Skip to content

Commit

Permalink
Chat: Fix message len.
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Jan 25, 2023
1 parent 48fb26f commit cf4b75e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocols/pvchat.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ static bool decode(uint8_t *bits, uint32_t numbytes, uint32_t numbits, ProtoView

fieldset_add_str(info->fieldset,"sender",(char*)raw+1,senderlen);
fieldset_add_str(info->fieldset,"message",(char*)raw+1+senderlen,
datalen-senderlen-3);
datalen-senderlen-4);
return true;
}

Expand Down

0 comments on commit cf4b75e

Please sign in to comment.