Hi Erich,
The implementation part of the patch doesn't look right. I think that it should be fixed by %s format reporting error when there's no characters to read.
I'm attaching a diff (generated on top of your patch) that shows the problems.
Also please use only tests on strings (sscanf) or handle file creation failure.
Thanks, Piotr