summaryrefslogtreecommitdiff
path: root/src/responder/nss
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-05-14 15:58:37 +0200
committerStephen Gallagher <sgallagh@redhat.com>2012-05-15 08:24:21 -0400
commit70694ae643677327d58912d00681096b1ab86863 (patch)
tree927034adc075322bfe0f32fb0954d7b0bf447d25 /src/responder/nss
parentde2a06183ebea42e27431d5dd94e108ac56e7436 (diff)
downloadsssd-70694ae643677327d58912d00681096b1ab86863.tar.gz
sssd-70694ae643677327d58912d00681096b1ab86863.tar.bz2
sssd-70694ae643677327d58912d00681096b1ab86863.zip
Use sized_string correctly in FQDN domains
Diffstat (limited to 'src/responder/nss')
-rw-r--r--src/responder/nss/nsssrv_cmd.c4
1 files changed, 2 insertions, 2 deletions
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) {