From fdc75a358e4c20116640c08f4e8ce7a09dc3cebd Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 7 May 2016 03:02:56 +0200 Subject: Optimisations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/zlsh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/zlsh.c') diff --git a/src/zlsh.c b/src/zlsh.c index 59a05bf..dce8010 100644 --- a/src/zlsh.c +++ b/src/zlsh.c @@ -19,11 +19,11 @@ zlsh(z_t a, z_t b, size_t bits) ENSURE_SIZE(a, b->used + chars + 1); if (likely(a == b)) { - zmemcpyb(a->chars + chars, b->chars, b->used); + zmemmoveb(a->chars + chars, b->chars, b->used); } else { zmemcpy(a->chars + chars, b->chars, b->used); } - zmemset(a->chars, 0, chars); + zmemset_precise(a->chars, 0, chars); a->used = b->used + chars; if (likely(bits)) { /* This if statement is very important in C. */ -- cgit v1.2.3-70-g09d2