=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/Attic/uuencode.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- src/usr.bin/ssh/Attic/uuencode.c 2000/04/26 20:56:30 1.1 +++ src/usr.bin/ssh/Attic/uuencode.c 2000/04/26 21:51:50 1.2 @@ -40,6 +40,9 @@ } else if (i == nbytes + 2) { outptr[-1] = '='; outptr[-2] = '='; + } else if (i == nbytes) { + debug("uuencode: i == nbytes"); + *(outptr++) = '='; } *outptr = '\0'; return (outptr - bufcoded); @@ -76,7 +79,8 @@ * buffer, adjust the number of input bytes downwards. */ bufin = bufcoded; - while (DEC(*(bufin++)) <= MAXVAL); + while (DEC(*(bufin++)) <= MAXVAL) + ; nprbytes = bufin - bufcoded - 1; nbytesdecoded = ((nprbytes + 3) / 4) * 3; if (nbytesdecoded > outbufsize)