summaryrefslogtreecommitdiffstats
path: root/src/resolve/resolved-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/resolve/resolved-util.c')
-rw-r--r--src/resolve/resolved-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/resolved-util.c b/src/resolve/resolved-util.c
index 00abada..adcd35d 100644
--- a/src/resolve/resolved-util.c
+++ b/src/resolve/resolved-util.c
@@ -14,7 +14,7 @@ int resolve_system_hostname(char **full_hostname, char **first_label) {
#elif HAVE_LIBIDN
int k;
#endif
- char label[DNS_LABEL_MAX];
+ char label[DNS_LABEL_MAX+1];
const char *p, *decoded;
int r;