Fix overflow in too many arguments (bug #806)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2064 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2004-01-23 19:12:44 +00:00
parent 1455d0211b
commit e60848a65f

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));
}