Ticket #21225: patch-webspy.c.diff
File patch-webspy.c.diff, 627 bytes (added by hsivank@…, 15 years ago) |
---|
-
webspy.c
old new 126 126 if (auth == NULL) 127 127 auth = ""; 128 128 if (vhost == NULL) 129 vhost = libnet_ host_lookup(addr->daddr, 0);129 vhost = libnet_addr2name4(addr->daddr, 0); 130 130 131 131 snprintf(cmd, sizeof(cmd), "openURL(http://%s%s%s%s)", 132 132 auth, *auth ? "@" : "", vhost, uri); … … 202 202 cmdtab[0] = cmd; 203 203 cmdtab[1] = NULL; 204 204 205 if ((host = libnet_name _resolve(argv[0], 1)) == -1)205 if ((host = libnet_name2addr4(NULL, argv[0], 1)) == -1) 206 206 errx(1, "unknown host"); 207 207 208 208 if ((dpy = XOpenDisplay(NULL)) == NULL)