2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
authorSimon Josefsson <simon@josefsson.org>
Tue, 13 Sep 2005 08:04:11 +0000 (08:04 +0000)
committerSimon Josefsson <simon@josefsson.org>
Tue, 13 Sep 2005 08:04:11 +0000 (08:04 +0000)
* lib/base64.c: Typo.
(base64_encode): Put b64str in initialized data section.

lib/ChangeLog
lib/base64.c

index d4ff731..840b6b8 100644 (file)
@@ -1,3 +1,8 @@
+2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
+
+       * lib/base64.c: Typo.
+       (base64_encode): Put b64str in initialized data section.
+
 2005-09-12  Derek Price  <derek@ximbiot.com>
 
        Return usable errors from canon-host.
index 48f3dc7..f1e0604 100644 (file)
@@ -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)