properly zero-terminate input buffer -  Bug #605

http://bugs.mariadb.com/show_bug.cgi?id=605

this fixes test errors I had where the output file had an extra "lugin-innodb-re" line at the end of the output file