buffer over-read fix in magic_sub
Merge pull request #740 from querymetrics/buffix

buffer over-read fix in magic_sub