Use strcmp instead of strncmp

Assuming type encoding is always one character is wrong. For example: @encode(void(^)(void)) gives "@?"