Making strcasestr more friendly.

This commit is contained in:
William Kendrick 2006-10-12 07:33:53 +00:00
parent b02f0c3b68
commit f506097ac7

View file

@ -208,7 +208,10 @@ char *strcasestr(const char *haystack, const char *needle)
result = strstr(uphaystack, upneedle);
return (result - uphaystack + (char *) haystack);
if (result != NULL)
return (result - uphaystack + (char *) haystack);
else
return NULL;
}
#endif