From: Simon Josefsson Date: Tue, 13 Sep 2005 08:04:11 +0000 (+0000) Subject: 2005-09-12 Ralf Wildenhues (tiny change) X-Git-Tag: cvs-readonly~2960 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=3a70427ed58ce0c01fbe93b8c934194dd0fb85a3;p=gnulib.git 2005-09-12 Ralf Wildenhues (tiny change) * lib/base64.c: Typo. (base64_encode): Put b64str in initialized data section. --- diff --git a/lib/ChangeLog b/lib/ChangeLog index d4ff7314c..840b6b897 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2005-09-12 Ralf Wildenhues (tiny change) + + * lib/base64.c: Typo. + (base64_encode): Put b64str in initialized data section. + 2005-09-12 Derek Price Return usable errors from canon-host. 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)