Fix unterminated slot spec array in compare.c