fixed invalid read in strtofr