[Asterisk-cvs] asterisk utils.c,1.45,1.46

markster at lists.digium.com markster at lists.digium.com
Fri May 27 17:06:11 CDT 2005


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

Modified Files:
	utils.c 
Log Message:
Fix cast to int from pointer (duh!)


Index: utils.c
===================================================================
RCS file: /usr/cvsroot/asterisk/utils.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- utils.c	20 May 2005 16:30:13 -0000	1.45
+++ utils.c	27 May 2005 21:10:06 -0000	1.46
@@ -503,7 +503,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