Fix array limit.
Oops, fix use of memset.