i=fanyong key may not be NULL terminated on HEAD, so change KEY_IS() macro to use strncmp() instead of strcmp.