Changed every call to sscanf to include the %n directive.