74bbb55e87
of char not int so memset was stomping memory past the end of the array. Use sizeof properly to correctly determine the amount of memory to clear.