Click to See Complete Forum and Search --> : Can someone please take a look at this? (LZ implementation)


JamesSchumacher
March 27th, 2008, 05:16 PM
Okay, I have two files here. Very basic. The problem I am having is that the input index is ending up one past the length of the buffer, therefore it is ending up 2 bytes out of bounds so to speak. (It's only 1 byte technically past, since the last increment will put it out of bounds naturally if it was correct)

Can someone help me track this down?

And while you are at it, can you make sure that I am doing this right? Thanks. :thumb: