refs #6089 fix null bytes computation

git-svn-id: file:///svn/mysql.com/mysql-5.5.30@54812 c7de825b-a66e-492c-adef-691d508d4ae1