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:
parent
443dd11cf8
commit
08d1af85c9
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue