=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/Attic/uuencode.c,v retrieving revision 1.17.10.1 retrieving revision 1.18 diff -u -r1.17.10.1 -r1.18 --- src/usr.bin/ssh/Attic/uuencode.c 2006/09/30 04:06:51 1.17.10.1 +++ src/usr.bin/ssh/Attic/uuencode.c 2006/03/19 18:51:19 1.18 @@ -1,4 +1,3 @@ -/* $OpenBSD: uuencode.c,v 1.17.10.1 2006/09/30 04:06:51 brad Exp $ */ /* * Copyright (c) 2000 Markus Friedl. All rights reserved. * @@ -23,14 +22,13 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include -#include -#include -#include +#include "includes.h" #include "xmalloc.h" #include "uuencode.h" +#include + int uuencode(const u_char *src, u_int srclength, char *target, size_t targsize) @@ -61,14 +59,9 @@ void dump_base64(FILE *fp, u_char *data, u_int len) { - char *buf; + char *buf = xmalloc(2*len); int i, n; - if (len > 65536) { - fprintf(fp, "dump_base64: len > 65536\n"); - return; - } - buf = xmalloc(2*len); n = uuencode(data, len, buf, 2*len); for (i = 0; i < n; i++) { fprintf(fp, "%c", buf[i]);