[trunk]fixes buffer overflow in t2.c

Update issue 390
Summary: check for negative-size params in code
Patch from Matthieu applied. Left open to apply this to other places in
code.
[trunk] removed illegal character in comment