author | Rich Felker <dalias@aerifal.cx> | 2012年05月26日 18:01:34 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012年05月26日 18:01:34 -0400 |
commit | aefd0f69bd22b825a6196e65b40a02e79fec23b5 (patch) | |
tree | e22dc9cbadfb354f998bee38f1716040680e4594 /src/string/strrchr.c | |
parent | 3f25354e624361f40011b242c492c2118184cc44 (diff) | |
download | musl-aefd0f69bd22b825a6196e65b40a02e79fec23b5.tar.gz |
-rw-r--r-- | src/string/strrchr.c | 2 |
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); } |