summaryrefslogtreecommitdiff
path: root/uuencode.c
diff options
context:
space:
mode:
Diffstat (limited to 'uuencode.c')
-rw-r--r--uuencode.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/uuencode.c b/uuencode.c
index d5f2b96b3..5d93e0b61 100644
--- a/uuencode.c
+++ b/uuencode.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: uuencode.c,v 1.10 2001/02/08 19:30:53 itojun Exp $ */ 1/* $OpenBSD: uuencode.c,v 1.10 2001/02/08 19:30:53 itojun Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2000 Markus Friedl. All rights reserved. 4 * Copyright (c) 2000 Markus Friedl. All rights reserved.
@@ -26,6 +26,7 @@
26 26
27#include "includes.h" 27#include "includes.h"
28#include "xmalloc.h" 28#include "xmalloc.h"
29#include "uuencode.h"
29 30
30RCSID("$OpenBSD: uuencode.c,v 1.10 2001/02/08 19:30:53 itojun Exp $"); 31RCSID("$OpenBSD: uuencode.c,v 1.10 2001/02/08 19:30:53 itojun Exp $");
31 32
@@ -61,6 +62,7 @@ dump_base64(FILE *fp, u_char *data, int len)
61{ 62{
62 u_char *buf = xmalloc(2*len); 63 u_char *buf = xmalloc(2*len);
63 int i, n; 64 int i, n;
65
64 n = uuencode(data, len, buf, 2*len); 66 n = uuencode(data, len, buf, 2*len);
65 for (i = 0; i < n; i++) { 67 for (i = 0; i < n; i++) {
66 fprintf(fp, "%c", buf[i]); 68 fprintf(fp, "%c", buf[i]);