ctcdecode icon indicating copy to clipboard operation
ctcdecode copied to clipboard

Fix for "Not enough space"

Open cathoderaymission opened this issue 5 years ago • 2 comments

In ctcdecode/src/binding.cpp change:

const char* end = str_i + strlen(labels)-1; to const char* end = str_i + strlen(labels);

I'd submit a patch, but I'm not 100% sure about the utf-8 stuff and how this is supposed to behave.

cathoderaymission avatar Nov 22 '19 05:11 cathoderaymission

Forgot that: int utf8_to_utf8_char_vec needs to be changed to: void utf8_to_utf8_char_vec as there is no return. This causes a segfault.

cathoderaymission avatar Nov 22 '19 20:11 cathoderaymission

Thank you, this seems to fix the issue for me!

Taneb avatar Dec 16 '19 16:12 Taneb