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

russell russell
Tue Sep 13 19:33:21 CDT 2005


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

Modified Files:
      Tag: v1-0
	utils.c 
Log Message:
fix crash on amd64 (issue #5210)


Index: utils.c
===================================================================
RCS file: /usr/cvsroot/asterisk/utils.c,v
retrieving revision 1.20
retrieving revision 1.20.2.1
diff -u -d -r1.20 -r1.20.2.1
--- utils.c	25 Sep 2004 22:42:17 -0000	1.20
+++ utils.c	13 Sep 2005 23:31:57 -0000	1.20.2.1
@@ -399,7 +399,7 @@
 		offset = strstr(upper(haystack, u1, u1len), upper(needle, u2, u2len));
 		if (offset) {
 			/* Return the offset into the original string */
-			return ((char *)((unsigned int)haystack + (unsigned int)(offset - u1)));
+			return ((char *)((unsigned long)haystack + (unsigned long)(offset - u1)));
 		} else {
 			return NULL;
 		}




More information about the svn-commits mailing list