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/buf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/buf.c') diff --git a/src/buf.c b/src/buf.c index 5cfce60..c03b85f 100644 --- a/src/buf.c +++ b/src/buf.c @@ -143,7 +143,7 @@ struct Buf *buf_strnappend (struct Buf *buf, const char *str, int n) /* Appends characters in str to buf. */ struct Buf *buf_strappend (struct Buf *buf, const char *str) { - return buf_strnappend (buf, str, strlen (str)); + return buf_strnappend (buf, str, (int) strlen (str)); } /* appends "#define str def\n" */ -- cgit v1.2.3