aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@smyrno.hos.anvin.org>2005-10-03 21:38:39 -0700
committerH. Peter Anvin <hpa@smyrno.hos.anvin.org>2005-10-03 21:38:39 -0700
commit1afe52436215236ac88a7c523d779fb2cf4cbd2a (patch)
tree68b6c4fe2e0ad97c0efdc482f75ee88882defb99
parent7bf7f40c24dfc96ce71588adeb5b9d700ebf1282 (diff)
downloadsyslinux-3.20-pre3.tar.gz
syslinux-3.20-pre3.tar.xz
syslinux-3.20-pre3.zip
The 62nd character in base64 is +, not .syslinux-3.20-pre3
-rw-r--r--com32/libutil/unbase64.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/com32/libutil/unbase64.c b/com32/libutil/unbase64.c
index 83007d3a..a3948aa9 100644
--- a/com32/libutil/unbase64.c
+++ b/com32/libutil/unbase64.c
@@ -36,7 +36,7 @@
#include <base64.h>
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;