- strncpy(domain_buf,start, domain_buf_len); + strncpy(domain_buf,start, sizeof(domain_buf) - 1 );