From 04aa86aeb5a5464dc50d538d67de164fcfc5e395 Mon Sep 17 00:00:00 2001 From: Ben Klang Date: Tue, 1 Jan 2013 18:41:53 -0500 Subject: [PATCH] One more place to fix length of the CNAME field --- ldap2dns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldap2dns.c b/ldap2dns.c index 098c1ac..cfd8c4d 100644 --- a/ldap2dns.c +++ b/ldap2dns.c @@ -726,7 +726,7 @@ static void parse_rr(struct resourcerecord* rr) int len = strlen(word1); expand_reverse(rr->cname, word1); } else if (strcasecmp(rr->type, "TXT")==0) { - strncpy(rr->cname, word1, 64); + strncpy(rr->cname, word1, sizeof(rr->cname)); } } #endif