zero length programs causing segfaults
use the correct size for our memset