Files
pkgsrc-ng/net/ra-rtsp-proxy/patches/patch-ab
2013-09-26 17:14:40 +02:00

13 lines
449 B
Plaintext

$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);