Fixed bug in Scan function.

This caused all SpamSums to be parsed incorrectly, and seems
to explain the discrepancy in the results of Compare() and
spamsum_match in the original C implementation