aboutsummaryrefslogtreecommitdiffstats
path: root/compat/b64_pton.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2017-02-03 13:01:00 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2017-02-03 13:01:00 +0000
commitc6342fe2e90510d8d2296423f2ca92818a7b3d18 (patch)
tree0cc9064980c804a7bf5cc6d96c9249950c7e56a9 /compat/b64_pton.c
parent65be028f32ed37dce84f6328d4a7172132c8c224 (diff)
downloadsrc-c6342fe2e90510d8d2296423f2ca92818a7b3d18.tar.gz
src-c6342fe2e90510d8d2296423f2ca92818a7b3d18.zip
Notes
Notes: svn path=/vendor/ldns/dist/; revision=313156 svn path=/vendor/ldns/1.7.0/; revision=313157; tag=vendor/ldns/1.7.0
Diffstat (limited to 'compat/b64_pton.c')
-rw-r--r--compat/b64_pton.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/compat/b64_pton.c b/compat/b64_pton.c
index abe32819e92d..18d8c8e976c2 100644
--- a/compat/b64_pton.c
+++ b/compat/b64_pton.c
@@ -118,15 +118,16 @@ static const char Pad64 = '=';
*/
int
-ldns_b64_pton(char const *src, uint8_t *target, size_t targsize)
+ldns_b64_pton(char const *origsrc, uint8_t *target, size_t targsize)
{
+ unsigned char const* src = (unsigned char*)origsrc;
int tarindex, state, ch;
char *pos;
state = 0;
tarindex = 0;
- if (strlen(src) == 0) {
+ if (strlen(origsrc) == 0) {
return 0;
}