From d2c0374297b7dd687a89227f3e77ff3f244da94b Mon Sep 17 00:00:00 2001 From: rlar Date: Mon, 29 Feb 2016 19:41:04 +0100 Subject: add (int) casts to some strlen() invocations to prevent warnings --- src/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/misc.c') diff --git a/src/misc.c b/src/misc.c index 37a52bb..0d93e4b 100644 --- a/src/misc.c +++ b/src/misc.c @@ -138,7 +138,7 @@ static void action_m4_define (const char *defname, const char * value) /* Append "new_text" to the running buffer. */ void add_action (const char *new_text) { - int len = strlen (new_text); + int len = (int) strlen (new_text); while (len + action_index >= action_size - 10 /* slop */ ) { int new_size = action_size * 2; -- cgit v1.2.3