Instead of using strncpy, use ast_copy_string. Also, in the case of copying a
authorRussell Bryant <russell@russellbryant.com>
Mon, 10 Apr 2006 02:05:59 +0000 (02:05 +0000)
committerRussell Bryant <russell@russellbryant.com>
Mon, 10 Apr 2006 02:05:59 +0000 (02:05 +0000)
commit9a5c7c75a3a7f53e0c9e306c7a6aee78ed8c56bf
treef22efcedf14edd3bb1a01cdf6d5e34ed4672fb2f
parentd13bc3fc83a04faa6fd40e441ad9f89ecd3f53ec
Instead of using strncpy, use ast_copy_string.  Also, in the case of copying a
constant string into a buffer that we know is big enough, don't use a length
limited copy at all, use strcpy.

... as stated in the coding guidelines.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18721 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_config_pgsql.c