fix single-byte overflow of malloc'd buffer in getdelim