potion_source_string: fix cut len, do not write after \0, overwrite it

This fixes various AST dbg prints