summaryrefslogtreecommitdiff
path: root/src/buf.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/buf.c
parent0f276adbb23542471bc30a2479e5fcdd5f475d72 (diff)
add (int) casts to some strlen() invocations to prevent warnings
Diffstat (limited to 'src/buf.c')
-rw-r--r--src/buf.c2
1 files changed, 1 insertions, 1 deletions
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" */