version 1.1, 2000/04/26 20:56:30 |
version 1.2, 2000/04/26 21:51:50 |
|
|
} 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); |
|
|
* 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) |