projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
autoupdate
[gnulib.git]
/
lib
/
base64.c
diff --git
a/lib/base64.c
b/lib/base64.c
index
48f3dc7
..
f1e0604
100644
(file)
--- a/
lib/base64.c
+++ b/
lib/base64.c
@@
-36,7
+36,7
@@
* FAIL: input too long
* if (out == NULL)
* FAIL: memory allocation error
* FAIL: input too long
* if (out == NULL)
* FAIL: memory allocation error
- * OK: data in OUT/LEN.
+ * OK: data in OUT/
OUT
LEN.
*
*/
*
*/
@@
-65,7
+65,7
@@
void
base64_encode (const char *restrict in, size_t inlen,
char *restrict out, size_t outlen)
{
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)
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
while (inlen && outlen)