From 3a70427ed58ce0c01fbe93b8c934194dd0fb85a3 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Tue, 13 Sep 2005 08:04:11 +0000 Subject: [PATCH] 2005-09-12 Ralf Wildenhues (tiny change) * lib/base64.c: Typo. (base64_encode): Put b64str in initialized data section. --- lib/ChangeLog | 5 +++++ lib/base64.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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) -- 2.11.0