Buffer overflow fix.