summaryrefslogtreecommitdiff
path: root/main/asterisk.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2009-02-18 06:00:40 +0000
committerRussell Bryant <russell@russellbryant.com>2009-02-18 06:00:40 +0000
commita844cfa904f5d72f983ed090582c2e83d32c1229 (patch)
tree789e2b55c622564b4e9a26a9ba895aeb1090b23b /main/asterisk.c
parent8f8f4adf7dba65d9bd6855417f036076e70f8dfd (diff)
Fix a number of incorrect uses of strncpy().
The big problem here is that the 3rd argument provided in these uses of strncpy() did not reserve a byte for the null terminator, leaving the potential for writing one byte past the end of the buffer. Aside from this, there were coding guidelines violations with regards to spacing, as well as hard coded lengths being used instead of sizeof(). git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@176901 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/asterisk.c')
0 files changed, 0 insertions, 0 deletions