aboutsummaryrefslogtreecommitdiffstats
path: root/enum.c
diff options
context:
space:
mode:
Diffstat (limited to 'enum.c')
-rwxr-xr-xenum.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/enum.c b/enum.c
index b746d45ab..5539e9f68 100755
--- 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
- 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;