diff options
| author | Sam Varshavchik | 2020-11-24 19:40:15 -0500 |
|---|---|---|
| committer | Sam Varshavchik | 2020-11-24 19:40:15 -0500 |
| commit | 888d2f995d78427075d7e34393ef409b22687be6 (patch) | |
| tree | 1011c111b9c21b149a637c7654f706bb194f0389 /unicode/unicodebuf.c | |
| parent | 181c424a834d13a27e6026d4d05ac49230372aba (diff) | |
| parent | b89f5f8dc09431bb345308b3a0ffd5f7d22cdfb2 (diff) | |
| download | courier-libs-888d2f995d78427075d7e34393ef409b22687be6.tar.bz2 | |
Merge remote-tracking branch 'origin/unicode-2.1' into master
Diffstat (limited to 'unicode/unicodebuf.c')
| -rw-r--r-- | unicode/unicodebuf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/unicode/unicodebuf.c b/unicode/unicodebuf.c index eb64543..59b7522 100644 --- a/unicode/unicodebuf.c +++ b/unicode/unicodebuf.c @@ -89,7 +89,8 @@ void unicode_buf_remove(struct unicode_buf *p, cnt=p->len-pos; if (cnt) - memmove(p->ptr+pos+cnt, p->ptr+pos, p->len-pos-cnt); + memmove(p->ptr+pos, p->ptr+pos+cnt, + (p->len-pos-cnt) * sizeof(char32_t)); p->len -= cnt; } |
