sercmd: memset with proper size