mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2026-09-05 16:40:42 +00:00
Correct handling of trailing zeros in _rle_encode (#4702)
This commit is contained in:
@@ -1095,6 +1095,8 @@ def _rle_encode(string):
|
||||
count = 0
|
||||
|
||||
new += bytes([cur])
|
||||
if count != 0:
|
||||
new += b'\0' + bytes([count])
|
||||
return new
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user