2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
+ * inflate.c (inflate_dynamic, inflate): Don't send output to
+ stderr unless DEBUG is defined and 'verbose'. Problem reported by
+ Santiago Vila.
+
* zgrep.in: If the file name contains newline, &, \, or |, escape
the character so that 'sed' doesn't mishandle it as a replacement.
Problem reported by Bdale Garbee.
if ((i = huft_build(ll, nl, 257, cplens, cplext, &tl, &bl)) != 0)
{
if (i == 1) {
- fprintf(stderr, " incomplete literal tree\n");
+ Trace ((stderr, " incomplete literal tree\n"));
huft_free(tl);
}
return i; /* incomplete code set */
if ((i = huft_build(ll + nl, nd, 0, cpdist, cpdext, &td, &bd)) != 0)
{
if (i == 1) {
- fprintf(stderr, " incomplete distance tree\n");
+ Trace ((stderr, " incomplete distance tree\n"));
#ifdef PKZIP_BUG_WORKAROUND
i = 0;
}
/* return success */
-#ifdef DEBUG
- fprintf(stderr, "<%u> ", h);
-#endif /* DEBUG */
+ Trace ((stderr, "<%u> ", h));
return 0;
}