create_toc_string(): do not allocate more than needed.

Size calculation is commented.
Add discid_get_toc_string()