refs #6090 fix null bytes computation

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