]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
fix crash on amd64 (issue #5210)
authorRussell Bryant <russell@russellbryant.com>
Tue, 13 Sep 2005 23:31:57 +0000 (23:31 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 13 Sep 2005 23:31:57 +0000 (23:31 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@6570 65c4cc65-6c06-0410-ace0-fbb531ad65f3

utils.c

diff --git a/utils.c b/utils.c
index 2557c3180e86b7a4eace86fadeeb44beb48dad51..90fb14ffb62c2e55fcd7ee83bee15ebfaf6d2b11 100755 (executable)
--- 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;
                }