Check struct length in eq.m