Fix a sprintf size typo which would overwrite the error buffer in bim's open_file func