settings: Avoid conf file parsing beyond allocated buffer