Fix up use of sizeof() where I have replaced GCC dynamic arrays with alloca()