fix uudecode to also decode one yenc file I came across

This commit is contained in:
leitner 2004-12-05 00:40:23 +00:00
parent 77c5e333db
commit 5553129f01

View File

@ -320,6 +320,7 @@ invalidpart:
i+=x+1; out.len+=scanned; i+=x+1; out.len+=scanned;
} }
i=crc32(0,out.s,out.len); i=crc32(0,out.s,out.len);
if (endoffset == offset+out.len-1) ++endoffset;
if (out.len == endoffset-offset && i == wantedcrc) { if (out.len == endoffset-offset && i == wantedcrc) {
/* ok, save block */ /* ok, save block */
buffer_put(&fileout,out.s,out.len); buffer_put(&fileout,out.s,out.len);