Commit 47536147 authored by Hugo Hörnquist's avatar Hugo Hörnquist

Change to better null trimming in parser.

parent 9e7e57ae
......@@ -90,9 +90,8 @@
MAPPLANES)
(u16vector-ref (get-bytevector-n port (sizeof unsigned)) 0) ; width
(u16vector-ref (get-bytevector-n port (sizeof unsigned)) 0) ; height
(string-filter ; name
(bytevector->string (get-bytevector-n port 16) "ASCII")
(lambda (c) (not (eq? c #\nul))))
(string-trim-right (bytevector->string (get-bytevector-n port 16) "ASCII")
#\nul)
;; (bytevector->string (get-bytevector-n port 4) "ASCII") ; "!ID!"
))))
(get-offsets maphead)))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment