Fixes off-by-one in readmem()

Missed this when it went from __readstr -> readmem.