fixed off by one error in the return buffer dli