Fix multiple stack-smashing functions