fix linux crash on sscanf failure