summaryrefslogtreecommitdiff
path: root/src/misc.c
diff options
context:
space:
mode:
authorrlar <rlar>2016-02-29 19:41:04 +0100
committerWill Estes <westes575@gmail.com>2016-02-29 20:16:03 -0500
commitd2c0374297b7dd687a89227f3e77ff3f244da94b (patch)
tree00f90edde731eb4fcee9212fee9220d848a739ba /src/misc.c
parent0f276adbb23542471bc30a2479e5fcdd5f475d72 (diff)
add (int) casts to some strlen() invocations to prevent warnings
Diffstat (limited to 'src/misc.c')
-rw-r--r--src/misc.c2
1 files changed, 1 insertions, 1 deletions
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;