Got rid of code duplication in tnew() and tresize().
Got rid of code duplication in tnew() and tresize().

Signed-off-by: Christoph Lohmann <80554d406dcaab4b48b5b2e6ac7b25e86705c9c0@r-36.net>

google/mt,google/mt