make compiler quiet about null termination.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7988 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-03-31 16:06:08 +00:00
parent 2a98f0639b
commit 12e7b5f016
1 changed files with 2 additions and 2 deletions

View File

@ -143,11 +143,11 @@ SWITCH_DECLARE(switch_status_t) switch_network_list_add_host_mask(switch_network
SWITCH_DECLARE(int) switch_parse_cidr(const char *string, uint32_t *ip, uint32_t *mask, uint32_t *bitp)
{
char host[128] = "";
char host[128];
char *bit_str;
int32_t bits;
strncpy(host, string, sizeof(host) - 1);
switch_copy_string(host, string, sizeof(host));
bit_str = strchr(host, '/');
if (!bit_str) {