imc: fix size of a memset()