Use stack allocation in srccpy