lib/vsprintf.c: improve standard conformance of sscanf()