[BACK]Return to uuencode.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/Attic/uuencode.c between version 1.1 and 1.2

version 1.1, 2000/04/26 20:56:30 version 1.2, 2000/04/26 21:51:50
Line 40 
Line 40 
         } else if (i == nbytes + 2) {          } else if (i == nbytes + 2) {
                 outptr[-1] = '=';                  outptr[-1] = '=';
                 outptr[-2] = '=';                  outptr[-2] = '=';
           } else if (i == nbytes) {
                   debug("uuencode: i == nbytes");
                   *(outptr++) = '=';
         }          }
         *outptr = '\0';          *outptr = '\0';
         return (outptr - bufcoded);          return (outptr - bufcoded);
Line 76 
Line 79 
          * buffer, adjust the number of input bytes downwards.           * buffer, adjust the number of input bytes downwards.
          */           */
         bufin = bufcoded;          bufin = bufcoded;
         while (DEC(*(bufin++)) <= MAXVAL);          while (DEC(*(bufin++)) <= MAXVAL)
                   ;
         nprbytes = bufin - bufcoded - 1;          nprbytes = bufin - bufcoded - 1;
         nbytesdecoded = ((nprbytes + 3) / 4) * 3;          nbytesdecoded = ((nprbytes + 3) / 4) * 3;
         if (nbytesdecoded > outbufsize)          if (nbytesdecoded > outbufsize)

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2