mirror of https://github.com/mirror/busybox.git
strrchr: actually, last one was finding "" in "any" at pos 0,
should find at pos LAST...1_11_stable
parent
d5736c5607
commit
1363f0df15
|
@ -24,7 +24,7 @@ char* strrstr(const char *haystack, const char *needle)
|
|||
char *r = NULL;
|
||||
|
||||
if (!needle[0])
|
||||
return (char*)haystack;
|
||||
return (char*)haystack + strlen(haystack);
|
||||
while (1) {
|
||||
char *p = strstr(haystack, needle);
|
||||
if (!p)
|
||||
|
|
Loading…
Reference in New Issue