summaryrefslogtreecommitdiff
path: root/src/libs6dns/s6dns_domain_tostring.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2024-04-27 12:48:31 +0000
committerLaurent Bercot <ska@appnovation.com>2024-04-27 12:48:31 +0000
commit33e4b9d9137b5dbb02a087956f1558ef30647aea (patch)
treebb9578695eabce49207ad2d4aa3593e950778e25 /src/libs6dns/s6dns_domain_tostring.c
parent51196c1512f071bec38064f8add058f52542976b (diff)
downloads6-dns-33e4b9d9137b5dbb02a087956f1558ef30647aea.tar.xz
Prepare for 2.3.7.2; implement dns-0x20
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libs6dns/s6dns_domain_tostring.c')
-rw-r--r--src/libs6dns/s6dns_domain_tostring.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libs6dns/s6dns_domain_tostring.c b/src/libs6dns/s6dns_domain_tostring.c
index 2c1cf01..cd60f66 100644
--- a/src/libs6dns/s6dns_domain_tostring.c
+++ b/src/libs6dns/s6dns_domain_tostring.c
@@ -2,6 +2,9 @@
#include <string.h>
#include <errno.h>
+
+#include <skalibs/bytestr.h>
+
#include <s6-dns/s6dns-domain.h>
unsigned int s6dns_domain_tostring (char *s, size_t max, s6dns_domain_t const *d)
@@ -18,6 +21,7 @@ unsigned int s6dns_domain_tostring (char *s, size_t max, s6dns_domain_t const *d
{
memcpy(s, d->s + 1, d->len - 1) ;
s[d->len - 1] = 0 ;
+ case_lowerb(s, d->len - 1) ;
return d->len - 1 ;
}
}