diff -r fbc33813265b -r 2bf1da3c411e src/ucx/string.h --- a/src/ucx/string.h Thu Jun 21 16:00:37 2018 +0200 +++ b/src/ucx/string.h Thu Jun 21 16:10:19 2018 +0200 @@ -124,7 +124,7 @@ inline scstr_t s2scstr(sstr_t s) { scstr_t c; c.ptr = s.ptr; - c.length = s.ptr; + c.length = s.length; return c; }