libio: Fix buffer overrun in tst-ftell-active-handler