summaryrefslogtreecommitdiff
path: root/protocols/WhatsAppWeb/src/wanode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/WhatsAppWeb/src/wanode.cpp')
-rw-r--r--protocols/WhatsAppWeb/src/wanode.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/WhatsAppWeb/src/wanode.cpp b/protocols/WhatsAppWeb/src/wanode.cpp
index 72d8bec38c..f3d4053e7d 100644
--- a/protocols/WhatsAppWeb/src/wanode.cpp
+++ b/protocols/WhatsAppWeb/src/wanode.cpp
@@ -526,8 +526,8 @@ void WAWriter::writePacked(const CMStringA &str, int tag)
writeByte(tag);
int len = str.GetLength() / 2;
- BYTE firstByte = (str.GetLength() % 2) == 0 ? 0 : 0x80;
- writeByte(firstByte | len);
+ BYTE firstByte = (str.GetLength() % 2) == 0 ? 0 : 0x81;
+ writeByte(firstByte + len);
const char *p = str;
for (int i = 0; i < len; i++, p += 2)