X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fbase64.c;h=f1e0604503b1fa3951ba6a712665c49840b5a6f5;hb=8de557e31178699dd6e839850056f0653cdfba89;hp=48f3dc7a4167b713d3666978ae00e4e2c613753c;hpb=1eccb9ebfa5fcc76c78976bc504e9bfd2e78f77c;p=gnulib.git diff --git a/lib/base64.c b/lib/base64.c index 48f3dc7a4..f1e060450 100644 --- a/lib/base64.c +++ b/lib/base64.c @@ -36,7 +36,7 @@ * FAIL: input too long * if (out == NULL) * FAIL: memory allocation error - * OK: data in OUT/LEN. + * OK: data in OUT/OUTLEN. * */ @@ -65,7 +65,7 @@ void base64_encode (const char *restrict in, size_t inlen, char *restrict out, size_t outlen) { - const char b64str[64] = + static const char b64str[64] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; while (inlen && outlen)