diff options
Diffstat (limited to 'src/encoding.c')
| -rw-r--r-- | src/encoding.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |