Mercurial > hg > octave-nkf > gnulib-hg
diff lib/base64.c @ 6226:5ddf33c5823b
2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
* lib/base64.c: Typo.
(base64_encode): Put b64str in initialized data section.
author | Simon Josefsson <simon@josefsson.org> |
---|---|
date | Tue, 13 Sep 2005 08:04:11 +0000 (2005-09-13) |
parents | c1d164e8c502 |
children | 99e42c0a09e1 |
line wrap: on
line diff
--- 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 @@ 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)