summaryrefslogtreecommitdiff
path: root/src/charset/codecs/codec_utf16.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/charset/codecs/codec_utf16.c')
-rw-r--r--src/charset/codecs/codec_utf16.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/charset/codecs/codec_utf16.c b/src/charset/codecs/codec_utf16.c
index 65f4d1a..8738cf1 100644
--- a/src/charset/codecs/codec_utf16.c
+++ b/src/charset/codecs/codec_utf16.c
@@ -447,7 +447,7 @@ parserutils_error charset_utf16_codec_read_char(charset_utf16_codec *c,
if (*sourcelen > INVAL_BUFSIZE)
abort();
- memmove(c->inval_buf, (char *) *source, *sourcelen);
+ memmove(c->inval_buf, *source, *sourcelen);
c->inval_buf[*sourcelen] = '\0';
c->inval_len = *sourcelen;
@@ -480,8 +480,7 @@ parserutils_error charset_utf16_codec_read_char(charset_utf16_codec *c,
if (*sourcelen > INVAL_BUFSIZE)
abort();
- memmove(c->inval_buf, (char *) *source,
- *sourcelen);
+ memmove(c->inval_buf, *source, *sourcelen);
c->inval_buf[*sourcelen] = '\0';
c->inval_len = *sourcelen;