main.c: main_read_text: fix an incorrectly terminated text string