[Asterisk-cvs] asterisk enum.c,1.18,1.19

citats at lists.digium.com citats at lists.digium.com
Fri Jul 2 15:34:19 CDT 2004


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/home/citats/cvs/asterisk

Modified Files:
	enum.c 
Log Message:
Fix TXT lookups so they dont strip off the last 2 characters

Index: enum.c
===================================================================
RCS file: /usr/cvsroot/asterisk/enum.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- enum.c	9 Jun 2004 01:45:07 -0000	1.18
+++ enum.c	2 Jul 2004 19:20:09 -0000	1.19
@@ -243,9 +243,8 @@
 	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;




More information about the svn-commits mailing list