Avoid the usage of alloca(). Reported by Rob McMahon.