version: the real 1.2.9, fix another bug from buf.c when input is longer than buffer size