aboutsummaryrefslogtreecommitdiff
path: root/libbb/last_char_is.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/last_char_is.c')
-rw-r--r--libbb/last_char_is.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/last_char_is.c b/libbb/last_char_is.c
index aaa85ddd9..b0592568c 100644
--- a/libbb/last_char_is.c
+++ b/libbb/last_char_is.c
@@ -12,7 +12,7 @@
12/* Find out if the last character of a string matches the one given. 12/* Find out if the last character of a string matches the one given.
13 * Don't underrun the buffer if the string length is 0. 13 * Don't underrun the buffer if the string length is 0.
14 */ 14 */
15char* last_char_is(const char *s, int c) 15char* FAST_FUNC last_char_is(const char *s, int c)
16{ 16{
17 if (s && *s) { 17 if (s && *s) {
18 size_t sz = strlen(s) - 1; 18 size_t sz = strlen(s) - 1;