Skip to content
Snippets Groups Projects
Commit 9de6aed3 authored by James Golovich's avatar James Golovich
Browse files

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
parent 2e5873cb
No related branches found
No related tags found
No related merge requests found
...@@ -243,9 +243,8 @@ static int txt_callback(void *context, u_char *answer, int len, u_char *fullansw ...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment