mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
Fix for "show applications like" (bug #2501)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3837 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
2
utils.c
2
utils.c
@@ -386,7 +386,7 @@ static char *upper(const char *orig, char *buf, int bufsize)
|
||||
char *ast_strcasestr(const char *haystack, const char *needle)
|
||||
{
|
||||
char *u1, *u2;
|
||||
int u1len = strlen(haystack), u2len = strlen(needle);
|
||||
int u1len = strlen(haystack) + 1, u2len = strlen(needle) + 1;
|
||||
|
||||
u1 = alloca(u1len);
|
||||
u2 = alloca(u2len);
|
||||
|
Reference in New Issue
Block a user