Skip to content
Snippets Groups Projects
Commit 802a44a1 authored by Mark Spencer's avatar Mark Spencer
Browse files

Fix for "show applications like" (bug #2501)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3837 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent efbb8822
Branches
Tags
No related merge requests found
...@@ -386,7 +386,7 @@ static char *upper(const char *orig, char *buf, int bufsize) ...@@ -386,7 +386,7 @@ static char *upper(const char *orig, char *buf, int bufsize)
char *ast_strcasestr(const char *haystack, const char *needle) char *ast_strcasestr(const char *haystack, const char *needle)
{ {
char *u1, *u2; char *u1, *u2;
int u1len = strlen(haystack), u2len = strlen(needle); int u1len = strlen(haystack) + 1, u2len = strlen(needle) + 1;
u1 = alloca(u1len); u1 = alloca(u1len);
u2 = alloca(u2len); u2 = alloca(u2len);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment