Fix return value from memcmp