projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1455d02
)
Fix overflow in too many arguments (bug #806)
author
Mark Spencer
<markster@digium.com>
Fri, 23 Jan 2004 19:12:44 +0000
(19:12 +0000)
committer
Mark Spencer
<markster@digium.com>
Fri, 23 Jan 2004 19:12:44 +0000
(19:12 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2064
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
asterisk.c
patch
|
blob
|
history
diff --git
a/asterisk.c
b/asterisk.c
index
4c1c699
..
43f46b4
100755
(executable)
--- a/
asterisk.c
+++ b/
asterisk.c
@@
-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));
}