Add null terminator

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
Fixed issue #2152: Log window show whole commit in "View patch"

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
Merge branch 'log-patchview'