projects
/
platform
/
upstream
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bf7f40
)
The 62nd character in base64 is +, not .
syslinux-3.20-pre3
author
H. Peter Anvin
<hpa@smyrno.hos.anvin.org>
Tue, 4 Oct 2005 04:38:39 +0000
(21:38 -0700)
committer
H. Peter Anvin
<hpa@smyrno.hos.anvin.org>
Tue, 4 Oct 2005 04:38:39 +0000
(21:38 -0700)
com32/libutil/unbase64.c
patch
|
blob
|
history
diff --git
a/com32/libutil/unbase64.c
b/com32/libutil/unbase64.c
index
83007d3
..
a3948aa
100644
(file)
--- 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;