mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
Fix TXT lookups so they dont strip off the last 2 characters
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3375 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
5
enum.c
5
enum.c
@@ -243,9 +243,8 @@ static int txt_callback(void *context, u_char *answer, int len, u_char *fullansw
|
|||||||
printf("ENUMTXT Called\n");
|
printf("ENUMTXT Called\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if(answer != NULL)
|
if (answer != NULL) {
|
||||||
{
|
c->txtlen = strlen(answer);
|
||||||
c->txtlen = strlen(answer) - 2;
|
|
||||||
strncpy(c->txt, answer, 255);
|
strncpy(c->txt, answer, 255);
|
||||||
c->txt[c->txtlen] = 0;
|
c->txt[c->txtlen] = 0;
|
||||||
return 1;
|
return 1;
|
||||||
|
Reference in New Issue
Block a user