diff --git a/lib/rdb/reader.rb b/lib/rdb/reader.rb index 296fc21..1141031 100644 --- a/lib/rdb/reader.rb +++ b/lib/rdb/reader.rb @@ -289,7 +289,7 @@ def read_ziplist_entry(rdb, state) elsif header >> 4 == 14 rdb.read(8).unpack('Q').first elsif header == 240 - "0#{rdb.read(3)}".unpack('l').first + "#{rdb.read(3)}\x00".unpack('l').first elsif header == 254 rdb.read(1).unpack('c').first elsif header >= 241 && header <= 253