Fix TXT lookups so they dont strip off the last 2 characters
authorJames Golovich <james@gnuinter.net>
Fri, 2 Jul 2004 19:20:09 +0000 (19:20 +0000)
committerJames Golovich <james@gnuinter.net>
Fri, 2 Jul 2004 19:20:09 +0000 (19:20 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3375 65c4cc65-6c06-0410-ace0-fbb531ad65f3

enum.c

diff --git a/enum.c b/enum.c
index b746d45..5539e9f 100755 (executable)
--- a/enum.c
+++ b/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
 
        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;
                strncpy(c->txt, answer, 255);
                c->txt[c->txtlen] = 0;
                return 1;