wmmisc: Add error handling for fscanf.