git.samba.org
/
kai
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2c59d3
)
lib: The base64 chars are by definition single-byte :-)
author
Volker Lendecke
<vl@samba.org>
Fri, 25 Mar 2016 20:43:20 +0000
(21:43 +0100)
committer
Jeremy Allison
<jra@samba.org>
Tue, 3 May 2016 23:28:22 +0000
(
01:28
+0200)
Remove a dependency on charcnv
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/util/base64.c
patch
|
blob
|
history
diff --git
a/lib/util/base64.c
b/lib/util/base64.c
index bc78404c181324a3d7e1485e75d08149b071f648..de26b5b87020ce2e603666907a4daa3dcec85998 100644
(file)
--- a/
lib/util/base64.c
+++ b/
lib/util/base64.c
@@
-38,7
+38,7
@@
_PUBLIC_ DATA_BLOB base64_decode_data_blob_talloc(TALLOC_CTX *mem_ctx, const cha
n=i=0;
- while (*s && (p=strchr
_m
(b64,*s))) {
+ while (*s && (p=strchr(b64,*s))) {
idx = (int)(p - b64);
byte_offset = (i*6)/8;
bit_offset = (i*6)%8;