fix crash in spUtil_readfile