mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-22 12:52:33 +00:00
fix crash on amd64 (issue #5210)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@6570 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
2
utils.c
2
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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user