The extra 00 is the 0 you tacked onto the end of source . You should initialize ecx to SIZEOF source - 1, since that 0 is a sentinel rather than a value character.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,483
Solved Threads: 1,407
Skill Endorsements: 54