aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-13 23:31:57 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-13 23:31:57 +0000
commitc13df9dd94c79eed9e2f7172f9e324ce09f3aa37 (patch)
tree7c4cb6431e6f5fa3142f00ec7a4603203bb57aa7
parentfbcf98173be8139a0f64d8d3ed91e4f49ee5c98c (diff)
fix crash on amd64 (issue #5210)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/v1-0@6570 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils.c b/utils.c
index 2557c3180..90fb14ffb 100755
--- a/utils.c
+++ b/utils.c
@@ -399,7 +399,7 @@ char *ast_strcasestr(const char *haystack, const char *needle)
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;
}