From c6342fe2e90510d8d2296423f2ca92818a7b3d18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Fri, 3 Feb 2017 13:01:00 +0000 Subject: import ldns 1.7.0 --- compat/b64_pton.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'compat/b64_pton.c') 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; } -- cgit v1.2.3