ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/liblzf/lzf_c.c
(Generate patch)

Comparing liblzf/lzf_c.c (file contents):
Revision 1.24 by root, Tue Nov 13 10:56:57 2007 UTC vs.
Revision 1.25 by root, Tue Nov 13 11:02:28 2007 UTC

157 /* match found at *ref++ */ 157 /* match found at *ref++ */
158 unsigned int len = 2; 158 unsigned int len = 2;
159 unsigned int maxlen = in_end - ip - len; 159 unsigned int maxlen = in_end - ip - len;
160 maxlen = maxlen > MAX_REF ? MAX_REF : maxlen; 160 maxlen = maxlen > MAX_REF ? MAX_REF : maxlen;
161 161
162 if (expect_false (op + 1 + 3 >= out_end))
163 return 0;
164
165 op [- lit - 1] = lit - 1; /* stop run */ 162 op [- lit - 1] = lit - 1; /* stop run */
166 op -= !lit; /* undo run if length is zero */ 163 op -= !lit; /* undo run if length is zero */
164
165 if (expect_false (op + 3 + 1 >= out_end))
166 return 0;
167 167
168 for (;;) 168 for (;;)
169 { 169 {
170 if (expect_true (maxlen > 16)) 170 if (expect_true (maxlen > 16))
171 { 171 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines