mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +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");
|
||||
#endif
|
||||
|
||||
if(answer != NULL)
|
||||
{
|
||||
c->txtlen = strlen(answer) - 2;
|
||||
if (answer != NULL) {
|
||||
c->txtlen = strlen(answer);
|
||||
strncpy(c->txt, answer, 255);
|
||||
c->txt[c->txtlen] = 0;
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user