diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-01-05 10:59:11 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-01-05 11:08:12 +0100 |
commit | 9e44842a9a49ecd6190e046b6feb53dab1355c60 (patch) | |
tree | 75dcb16a0a36a3e5197f0fbf8b5e0cc5018bc940 /src/basic/string-util.c | |
parent | TODO: fix typo (diff) | |
download | systemd-9e44842a9a49ecd6190e046b6feb53dab1355c60.tar.xz systemd-9e44842a9a49ecd6190e046b6feb53dab1355c60.zip |
string-util: fix typo
Follow-up for 63566c6b6ffbb747727db4d6f78c28547430d54f.
Diffstat (limited to '')
-rw-r--r-- | src/basic/string-util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/basic/string-util.c b/src/basic/string-util.c index 8b039ebd98..38ca04b859 100644 --- a/src/basic/string-util.c +++ b/src/basic/string-util.c @@ -1512,14 +1512,14 @@ char *strrstr(const char *haystack, const char *needle) { const char *f = NULL; size_t l; - /* Like strstr() but returns the last rather than the first occurence of "needle" in "haystack". */ + /* Like strstr() but returns the last rather than the first occurrence of "needle" in "haystack". */ if (!haystack || !needle) return NULL; l = strlen(needle); - /* Special case: for the empty string we return the very last possible occurence, i.e. *after* the + /* Special case: for the empty string we return the very last possible occurrence, i.e. *after* the * last char, not before. */ if (l == 0) return strchr(haystack, 0); |