]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Merged revisions 176901 via svnmerge from
authorRussell Bryant <russell@russellbryant.com>
Wed, 18 Feb 2009 06:05:09 +0000 (06:05 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 18 Feb 2009 06:05:09 +0000 (06:05 +0000)
commit677106d98a21fd040b2127aa824d3cc059456f10
tree12dede1374e28262c1fa6cbfdea2508e115ea103
parent5976b91359b938a7875a1b61123323b17d85c95c
Merged revisions 176901 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r176901 | russell | 2009-02-18 00:00:40 -0600 (Wed, 18 Feb 2009) | 9 lines

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/branches/1.6.1@176903 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/pbx.c