-/* $OpenBSD: uuencode.c,v 1.8 2000/12/19 23:17:59 markus Exp $ */
+/* $OpenBSD: uuencode.c,v 1.12 2001/03/01 02:27:18 deraadt Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
#include "includes.h"
#include "xmalloc.h"
+#include "uuencode.h"
-RCSID("$OpenBSD: uuencode.c,v 1.8 2000/12/19 23:17:59 markus Exp $");
+RCSID("$OpenBSD: uuencode.c,v 1.12 2001/03/01 02:27:18 deraadt Exp $");
int
uuencode(u_char *src, u_int srclength,
{
u_char *buf = xmalloc(2*len);
int i, n;
+
n = uuencode(data, len, buf, 2*len);
for (i = 0; i < n; i++) {
fprintf(fp, "%c", buf[i]);