mirror of
https://github.com/bklang/ldap2dns.git
synced 2025-10-26 14:04:14 -04:00
One more place to fix length of the CNAME field
This commit is contained in:
@@ -726,7 +726,7 @@ static void parse_rr(struct resourcerecord* rr)
|
|||||||
int len = strlen(word1);
|
int len = strlen(word1);
|
||||||
expand_reverse(rr->cname, word1);
|
expand_reverse(rr->cname, word1);
|
||||||
} else if (strcasecmp(rr->type, "TXT")==0) {
|
} else if (strcasecmp(rr->type, "TXT")==0) {
|
||||||
strncpy(rr->cname, word1, 64);
|
strncpy(rr->cname, word1, sizeof(rr->cname));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user