From: H. Peter Anvin Date: Tue, 4 Oct 2005 04:38:39 +0000 (-0700) Subject: The 62nd character in base64 is +, not . X-Git-Tag: syslinux-3.20-pre3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1afe52436215236ac88a7c523d779fb2cf4cbd2a;p=profile%2Fivi%2Fsyslinux.git The 62nd character in base64 is +, not . --- diff --git a/com32/libutil/unbase64.c b/com32/libutil/unbase64.c index 83007d3..a3948aa 100644 --- a/com32/libutil/unbase64.c +++ b/com32/libutil/unbase64.c @@ -36,7 +36,7 @@ #include static const unsigned char _base64chars[] = -"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789./"; +"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; size_t unbase64(unsigned char *buffer, size_t bufsiz, const char *txt) { @@ -55,6 +55,7 @@ size_t unbase64(unsigned char *buffer, size_t bufsiz, const char *txt) } /* Also support filesystem safe alternate base64 encoding */ + base64tbl['.'] = 62; base64tbl['-'] = 62; base64tbl['_'] = 63;