lib: The base64 chars are by definition single-byte :-)
authorVolker Lendecke <vl@samba.org>
Fri, 25 Mar 2016 20:43:20 +0000 (21:43 +0100)
committerJeremy 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

index bc78404c181324a3d7e1485e75d08149b071f648..de26b5b87020ce2e603666907a4daa3dcec85998 100644 (file)
@@ -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;