Buffer overflow solved