소스 검색

Chat: Fix message len.

antirez 3 년 전
부모
커밋
cf4b75e6d2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      protocols/pvchat.c

+ 1 - 1
protocols/pvchat.c

@@ -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;
 }