summaryrefslogtreecommitdiff
path: root/net/ra-rtsp-proxy/patches/patch-ab
blob: 42d7641dcc0a42f11c0fff24f68cb564c031c5b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
$NetBSD: patch-ab,v 1.1 2001/02/04 17:46:08 tron Exp $

--- main.c.orig	Thu Jun 17 03:19:01 1999
+++ main.c	Sun Feb  4 18:38:53 2001
@@ -605,6 +605,7 @@
   /* make a copy of the hostent structure */
   host2 = g_malloc (sizeof (struct hostent));
   memcpy (host2, host, sizeof (struct hostent));
+  strcpy (host2->h_name = g_malloc (strlen(host->h_name) + 1), host->h_name);
 
   log_message (DEBUG_LOG, "DNS LOOKUP %s -> 0x%08lx", hostname, ip);