diff options
| author | = <jakob@memeware.net> | 2017-05-13 16:14:29 -0400 |
|---|---|---|
| committer | = <jakob@memeware.net> | 2017-05-13 16:14:29 -0400 |
| commit | 0f89d85ba8514fb36eacfe3a19b7f460b3547b24 (patch) | |
| tree | 52856d74361508e818b9068dccb9999ec36ee0e2 /src/encoding.c | |
| parent | 1ec0be0143717f9d7af883269f7707dd0161f6ec (diff) | |
General housekeeping
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); |