Return to uuencode.c CVS log | Up to [local] / src / usr.bin / ssh |
version 1.26, 2010/08/31 11:54:45 | version 1.27, 2013/05/17 00:13:14 | ||
---|---|---|---|
|
|
||
#include <netinet/in.h> | #include <netinet/in.h> | ||
#include <resolv.h> | #include <resolv.h> | ||
#include <stdio.h> | #include <stdio.h> | ||
#include <stdlib.h> | |||
#include "xmalloc.h" | #include "xmalloc.h" | ||
#include "uuencode.h" | #include "uuencode.h" | ||
|
|
||
/* and remove trailing whitespace because __b64_pton needs this */ | /* and remove trailing whitespace because __b64_pton needs this */ | ||
*p = '\0'; | *p = '\0'; | ||
len = __b64_pton(encoded, target, targsize); | len = __b64_pton(encoded, target, targsize); | ||
xfree(encoded); | free(encoded); | ||
return len; | return len; | ||
} | } | ||
|
|
||
} | } | ||
if (i % 70 != 69) | if (i % 70 != 69) | ||
fprintf(fp, "\n"); | fprintf(fp, "\n"); | ||
xfree(buf); | free(buf); | ||
} | } |