reported on LHa BBS (see <http://www2m.biglobe.ne.jp/~dolphin/>).
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@241
6a8cc165-1e22-0410-a132-
eb4e3f353aba
addr += lastmatchlen +1 ;
{
- int t,cc;
- for (t=0; t<lastmatchlen+1; t++) {
- cc = text[(pos-(lastmatchoffset)) & (dicsiz-1)];
- fprintf(fout, "%02X ", cc);
- }
- fprintf(fout, "\n");
+ int t,cc;
+ for (t=0; t<lastmatchlen+1; t++) {
+ cc = text[pos - lastmatchoffset - 2 + t];
+ fprintf(fout, "%02X ", cc);
+ }
+ fprintf(fout, "\n");
}
#endif
while (--lastmatchlen > 0) {