]> sjero.net Git - wget/commitdiff
[svn] Doc fix.
authorhniksic <devnull@localhost>
Wed, 21 Jun 2006 08:32:55 +0000 (01:32 -0700)
committerhniksic <devnull@localhost>
Wed, 21 Jun 2006 08:32:55 +0000 (01:32 -0700)
src/utils.c

index 8900b5b32561d2873121f6ab748a7361962a865e..7ea18b61d42f6e6272cccab2873dfe9e3c82b82f 100644 (file)
@@ -1903,15 +1903,13 @@ base64_encode (const void *data, int length, char *dest)
 {
   /* Conversion table.  */
   static const char tbl[64] = {
-    'A','B','C','D','E','F','G','H',
-    'I','J','K','L','M','N','O','P',
-    'Q','R','S','T','U','V','W','X',
-    'Y','Z','a','b','c','d','e','f',
-    'g','h','i','j','k','l','m','n',
-    'o','p','q','r','s','t','u','v',
-    'w','x','y','z','0','1','2','3',
-    '4','5','6','7','8','9','+','/'
+    'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P',
+    'Q','R','S','T','U','V','W','X','Y','Z','a','b','c','d','e','f',
+    'g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v',
+    'w','x','y','z','0','1','2','3','4','5','6','7','8','9','+','/'
   };
+  /* Access bytes in DATA as unsigned char, otherwise the shifts below
+     don't work for data with MSB set. */
   const unsigned char *s = data;
   /* Theoretical ANSI violation when length < 3. */
   const unsigned char *end = (const unsigned char *) data + length - 2;