[Asterisk-cvs] asterisk callerid.c,1.24,1.25

markster at lists.digium.com markster at lists.digium.com
Fri Oct 22 09:04:31 CDT 2004


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv25712

Modified Files:
	callerid.c 
Log Message:
Fix the shrink_number to not remove the trailing '.'


Index: callerid.c
===================================================================
RCS file: /usr/cvsroot/asterisk/callerid.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- callerid.c	8 Oct 2004 15:49:37 -0000	1.24
+++ callerid.c	22 Oct 2004 13:08:35 -0000	1.25
@@ -589,8 +589,12 @@
 			if (bracketed)
 				n[y++] = n[x];
 			break;
+		case '.':
+			if (!n[x+1])
+				n[y++] = n[x];
+			break;
 		default:
-			if (!strchr("( ).", n[x]))
+			if (!strchr("( )", n[x]))
 				n[y++] = n[x];
 		}
 	}




More information about the svn-commits mailing list