Permalink
Browse files

Bugfix: if the memo data's last character was a space it was getting …

…truncated
  • Loading branch information...
Mark Evans
Mark Evans committed Jul 22, 2010
1 parent 9458209 commit 7de68c8fe4eed31528f5a312a27293830362e83f
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/dbf/record.rb
View
@@ -121,7 +121,7 @@ def build_dbt_memo(start_block)
loop do
block = @memo.read(memo_block_size)
memo_string << block
- break if block.rstrip.size < memo_block_size
+ break if block.tr("\000",'').size < memo_block_size
end
when "8b" # dbase iv
memo_type, memo_size = @memo.read(BLOCK_HEADER_SIZE).unpack("LL")

0 comments on commit 7de68c8

Please sign in to comment.