about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/string/strrchr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string/strrchr.c b/src/string/strrchr.c
index 9c683087..635fb3c1 100644
--- a/src/string/strrchr.c
+++ b/src/string/strrchr.c
@@ -4,5 +4,5 @@ void *__memrchr(const void *, int, size_t);
 
 char *strrchr(const char *s, int c)
 {
-	return __memrchr(s, c, strlen(s));
+	return __memrchr(s, c, strlen(s) + 1);
 }