musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/string/strrchr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/string/strrchr.c')
-rw-r--r--src/string/strrchr.c 2
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);
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月08日 19:49:51 +0000

AltStyle によって変換されたページ (->オリジナル) /