Memset parameter order was inverted