better eof handling in zo-parse

svn: r14252
This commit is contained in:
Matthew Flatt 2009-03-24 18:38:18 +00:00
parent 43443652b8
commit 3b49038947

View File

@ -927,7 +927,7 @@
(define rst (read-bytes size* port))
(unless (eof-object? (read port))
(unless (eof-object? (read-byte port))
(error 'not-end))
(unless (= size* (bytes-length rst))