diff options
author | rlar <rlar> | 2016-02-29 19:41:04 +0100 |
---|---|---|
committer | Will Estes <westes575@gmail.com> | 2016-02-29 20:16:03 -0500 |
commit | d2c0374297b7dd687a89227f3e77ff3f244da94b (patch) | |
tree | 00f90edde731eb4fcee9212fee9220d848a739ba /src/buf.c | |
parent | 0f276adbb23542471bc30a2479e5fcdd5f475d72 (diff) |
add (int) casts to some strlen() invocations to prevent warnings
Diffstat (limited to 'src/buf.c')
-rw-r--r-- | src/buf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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" */ |