diff -cr hylafax-v4.0pl2.orig/faxd/TagLine.c++
hylafax-v4.0pl2/faxd/TagLine.c++
*** hylafax-v4.0pl2.orig/faxd/TagLine.c++       Sat Feb 14 21:49:37 1998
--- hylafax-v4.0pl2/faxd/TagLine.c++    Thu Aug 13 08:53:22 1998
***************
*** 236,242 ****
       * adjusted by the look ahead, a factor of the number of
       * bits pending in the G3 decoder's bit accumulator.
       */
!     u_int decoded = dec.current() - roundup(dec.getPendingBits(),8) - buf;

      if (params.vr == VR_NORMAL) {
        /*
--- 236,243 ----
       * adjusted by the look ahead, a factor of the number of
       * bits pending in the G3 decoder's bit accumulator.
       */
!     u_int look_ahead = roundup(dec.getPendingBits(),8) / 8;
!     u_int decoded = dec.current() - look_ahead - buf;

      if (params.vr == VR_NORMAL) {
        /*
diff -cr hylafax-v4.0pl2.orig/faxd/tagtest.c++
hylafax-v4.0pl2/faxd/tagtest.c++
*** hylafax-v4.0pl2.orig/faxd/tagtest.c++       Sat Feb 14 21:49:46 1998
--- hylafax-v4.0pl2/faxd/tagtest.c++    Thu Aug 13 08:53:14 1998
***************
*** 269,275 ****
       * adjusted by the look ahead, a factor of the number of
       * bits pending in the G3 decoder's bit accumulator.
       */
!     u_int decoded = dec.current() - roundup(dec.getPendingBits(),8) - buf;
      if (params.vr == VR_NORMAL) {
        /*
         * Scale text vertically before encoding.  Note the
--- 269,276 ----
       * adjusted by the look ahead, a factor of the number of
       * bits pending in the G3 decoder's bit accumulator.
       */
!     u_int look_ahead = roundup(dec.getPendingBits(),8) / 8;
!     u_int decoded = dec.current() - look_ahead - buf;
      if (params.vr == VR_NORMAL) {
        /*
         * Scale text vertically before encoding.  Note the  
