aboutsummaryrefslogtreecommitdiff
path: root/libbb/replace.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/replace.c')
-rw-r--r--libbb/replace.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libbb/replace.c b/libbb/replace.c
index bc26b04cc..273330f8a 100644
--- a/libbb/replace.c
+++ b/libbb/replace.c
@@ -28,7 +28,8 @@ unsigned FAST_FUNC count_strstr(const char *str, const char *sub)
28 28
29char* FAST_FUNC xmalloc_substitute_string(const char *src, int count, const char *sub, const char *repl) 29char* FAST_FUNC xmalloc_substitute_string(const char *src, int count, const char *sub, const char *repl)
30{ 30{
31 char *buf, *dst, *end; 31 char *buf, *dst;
32 const char *end;
32 size_t sub_len = strlen(sub); 33 size_t sub_len = strlen(sub);
33 size_t repl_len = strlen(repl); 34 size_t repl_len = strlen(repl);
34 35