when parsing a text configuration option, ensure that the buffer on the stack is...
commit64921b9a01cdff0082d0635ceedf8cdb249988ea
authorkpfleming <kpfleming@614ede4d-c843-0410-af14-a771ab80d22e>
Wed, 8 Oct 2008 22:22:09 +0000 (8 22:22 +0000)
committerkpfleming <kpfleming@614ede4d-c843-0410-af14-a771ab80d22e>
Wed, 8 Oct 2008 22:22:09 +0000 (8 22:22 +0000)
tree8d4ee073c923a4552017e4a73fc894876e00cf7a
parent1e34dd82ff5086cec8093a5b2fb4d46ebba2f67e
when parsing a text configuration option, ensure that the buffer on the stack is actually large enough to hold the legal values of that option, and also ensure that sscanf() knows to stop parsing if it would overrun the buffer (without these changes, specifying "buffers=...,immediate" would overflow the buffer on the stack, and could not have worked as expected)

git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@147681 614ede4d-c843-0410-af14-a771ab80d22e
channels/chan_dahdi.c