dect
/
asterisk
Archived
13
0
Fork 0

Fix overflow in too many arguments (bug #806)

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2064 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
markster 2004-01-23 19:12:44 +00:00
parent 443dd11cf8
commit 08d1af85c9
1 changed files with 2 additions and 1 deletions

View File

@ -1046,7 +1046,8 @@ static int ast_el_add_history(char *buf)
if (el_hist == NULL || el == NULL)
ast_el_initialize();
if (strlen(buf) > 256)
return 0;
return (history(el_hist, &ev, H_ENTER, buf));
}