← Commit list

1363f0df1

Denis Vlasenko
Denis Vlasenko
2008-06-18
FAILED Duration: 27s

Subject

strrchr: actually, last one was finding "" in "any" at pos 0, should find at pos LAST...

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

libbb/strrstr.c+1 -1
@@ -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)