summaryrefslogtreecommitdiff
path: root/compat/b64_pton.c
diff options
context:
space:
mode:
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;
}