# HG changeset patch # User reimar # Date 1170275192 0 # Node ID ed710b7b5f7260e0ba1960f8dd485e590c3bc230 # Parent b8b844ae593778356f7429e2ce86ba146e8b29d1 Documentation fix: Copy functions should "work" fine for cnt == 0 diff -r b8b844ae5937 -r ed710b7b5f72 lzo.c --- a/lzo.c Wed Jan 31 17:16:13 2007 +0000 +++ b/lzo.c Wed Jan 31 20:26:32 2007 +0000 @@ -81,7 +81,7 @@ /** * \brief copy bytes from input to output buffer with checking - * \param cnt number of bytes to copy, must be > 0 + * \param cnt number of bytes to copy, must be >= 0 */ static inline void copy(LZOContext *c, int cnt) { register uint8_t *src = c->in; @@ -109,7 +109,7 @@ /** * \brief copy previously decoded bytes to current position * \param back how many bytes back we start - * \param cnt number of bytes to copy, must be > 0 + * \param cnt number of bytes to copy, must be >= 0 * * cnt > back is valid, this will copy the bytes we just copied, * thus creating a repeating pattern with a period length of back.