From 70694ae643677327d58912d00681096b1ab86863 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Mon, 14 May 2012 15:58:37 +0200 Subject: Use sized_string correctly in FQDN domains --- src/responder/nss/nsssrv_cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/responder') diff --git a/src/responder/nss/nsssrv_cmd.c b/src/responder/nss/nsssrv_cmd.c index 43e82ae3..aa3ef3cb 100644 --- a/src/responder/nss/nsssrv_cmd.c +++ b/src/responder/nss/nsssrv_cmd.c @@ -1863,7 +1863,7 @@ static int fill_grent(struct sss_packet *packet, if (add_domain) { ret = snprintf((char *)&body[rzero + rsize], name.len + delim + dom_len, - namefmt, name, domain); + namefmt, name.str, domain); if (ret >= (name.len + delim + dom_len)) { /* need more space, * got creative with the print format ? */ @@ -1879,7 +1879,7 @@ static int fill_grent(struct sss_packet *packet, /* retry */ ret = snprintf((char *)&body[rzero + rsize], name.len + delim + dom_len, - namefmt, name, domain); + namefmt, name.str, domain); } if (ret != name.len + delim + dom_len - 1) { -- cgit