Skip to content
Snippets Groups Projects
Commit 896f33b3 authored by Jens Nolte's avatar Jens Nolte
Browse files

Fix off-by-one error in string/array encoder

parent dc28bdac
No related branches found
No related tags found
No related merge requests found
...@@ -779,7 +779,7 @@ putWaylandBlob blob = do ...@@ -779,7 +779,7 @@ putWaylandBlob blob = do
-- Padding length -- Padding length
pad = padding len pad = padding len
putBlob = do putBlob = do
putWord32host (fromIntegral (len + 1)) putWord32host (fromIntegral len)
putByteString blob putByteString blob
putWord8 0 putWord8 0
replicateM_ pad (putWord8 0) replicateM_ pad (putWord8 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment