[Asterisk-cvs] asterisk utils.c,1.19,1.20

markster at lists.digium.com markster at lists.digium.com
Sat Sep 25 18:39:32 CDT 2004


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

Modified Files:
	utils.c 
Log Message:
Fix for "show applications like" (bug #2501)


Index: utils.c
===================================================================
RCS file: /usr/cvsroot/asterisk/utils.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- utils.c	6 Sep 2004 15:29:41 -0000	1.19
+++ utils.c	25 Sep 2004 22:42:17 -0000	1.20
@@ -386,7 +386,7 @@
 char *ast_strcasestr(const char *haystack, const char *needle)
 {
 	char *u1, *u2;
-	int u1len = strlen(haystack), u2len = strlen(needle);
+	int u1len = strlen(haystack) + 1, u2len = strlen(needle) + 1;
 
 	u1 = alloca(u1len);
 	u2 = alloca(u2len);




More information about the svn-commits mailing list