Get_suffix, no '\0' in returned strings

Resolves issue #203
This commit is contained in:
Willem Toorop 2016-10-26 15:29:07 +02:00
parent c84ff93e4f
commit 4ea4f68467
1 changed files with 1 additions and 2 deletions

View File

@ -3698,8 +3698,7 @@ getdns_context_get_suffix(getdns_context *context, getdns_list **value)
r = GETDNS_RETURN_GENERIC_ERROR;
break;
}
if ((r = _getdns_list_append_const_bindata(
list, strlen(name) + 1, name)))
if ((r = _getdns_list_append_string(list, name)))
break;
dname += dname_len;
dname_len = *dname++;