terminology: fix potential segfault when writing after end of line
terminology: fix potential segfault when writing after end of line

SVN revision: 78619

ihorlaitan/terminology,bssb/terminology,bssb/terminology,ihorlaitan/terminology,godfath3r/terminology,godfath3r/terminology,bssb/terminology,ihorlaitan/terminology,godfath3r/terminology