# HG changeset patch # User Simon Josefsson # Date 1126598651 0 # Node ID 5ddf33c5823b1c8fc8e7ea8139160a7f57e34412 # Parent f50680a85bd40e069da23c71307aa4353dc00c52 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 --- 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 --- 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)