diff -r c766c423dee6 -r fa8b745be7b5 ucx/string.c --- a/ucx/string.c Thu Oct 22 11:35:40 2015 +0200 +++ b/ucx/string.c Mon Oct 26 14:09:45 2015 +0100 @@ -216,7 +216,7 @@ for (size_t j = 0 ; j < d.length ; j++) { sv.ptr[i+j] = 0; } - i += d.length; + i += d.length - 1; // -1, because the loop will do a i++ } } if ((*n) == nmax) break;