From 449e608f86f1b412bfdc97129cdfc478799da59d Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Thu, 12 Mar 2020 18:36:19 +0100 Subject: [PATCH] str_replace_str: ensure types match for comparison Signed-off-by: Nikos Mavrogiannopoulos --- src/str.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/str.c b/src/str.c index 91d955bf..7f3a00e0 100644 --- a/src/str.c +++ b/src/str.c @@ -174,7 +174,8 @@ int str_replace_str(str_st *str, const str_rep_tab *tab) unsigned length; char *final; unsigned final_len; - int ret, pos; + int ret; + size_t pos; p = str->data; pos = 0;