From 0f89d85ba8514fb36eacfe3a19b7f460b3547b24 Mon Sep 17 00:00:00 2001 From: = Date: Sat, 13 May 2017 16:14:29 -0400 Subject: General housekeeping --- src/encoding.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/encoding.c') diff --git a/src/encoding.c b/src/encoding.c index 8b1b7dc..fccc9b1 100644 --- a/src/encoding.c +++ b/src/encoding.c @@ -42,8 +42,8 @@ void utf16le_decode(char *in_buf, char *out_buf, size_t len) { stored in `out_buf`. */ void utf16le_encode(char *in_buf, char *out_buf, size_t len) { iconv_t conv = iconv_open("UTF-16LE", "UTF-8"); - /* This is to ensure that the null-terminator is included in the - encoded string. */ + /* This is done to ensure that the null-terminator is included in + the encoded string. */ if (strlen(in_buf) == len) len++; convert(in_buf, out_buf, len, len * 2 + 2, conv); -- cgit v1.3