Fix a scanf type mismatch