Problem was that str->alloc(length) needed a buffer of length+1 as decimals2string() will add an end null.
Attach a file by drag & drop or click to upload