]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3753 --resolve
authorJeff Lenk <jeff@jefflenk.com>
Mon, 12 Dec 2011 04:15:55 +0000 (22:15 -0600)
committerJeff Lenk <jeff@jefflenk.com>
Mon, 12 Dec 2011 04:15:55 +0000 (22:15 -0600)
src/switch_utils.c

index a523a1d218d784103a498012fdbfd9ed189c97f7..4624badc074b925a52933a2300b59a839ae8da37 100644 (file)
@@ -362,7 +362,7 @@ SWITCH_DECLARE(int) switch_parse_cidr(const char *string, ip_t *ip, ip_t *mask,
        ip_t *maskv = mask;
        ip_t *ipv = ip;
 
-       memcpy(host, string, sizeof(host));
+       switch_copy_string(host, string, sizeof(host)-1);
        bit_str = strchr(host, '/');
 
        if (!bit_str) {