summaryrefslogtreecommitdiff
path: root/mbone/sdr/patches/patch-ab
blob: e62ebb0bb59cc4f3de270c508a1619e4e6d4b133 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-ab,v 1.4 1998/08/07 11:09:59 agc Exp $

--- /tmp/newsdr/src/sip_common.c	Tue Apr 29 23:48:25 1997
+++ src/sip_common.c	Wed Jun 17 16:53:24 1998
@@ -211,7 +211,7 @@
 	  len=res_mkquery(QUERY, hostname, C_IN, T_MX, NULL, NULL, 
 			  NULL, buf, 200);
 	  if (len==-1) perror("res_mkquery");
-	  len=res_send(buf, len, ans, 2000);
+	  len=res_send(buf, len, (u_char *)ans, 2000);
 	  if (len==-1) perror("res_send");
 	  ans[0]=htonl(ans[0]);
 	  ans[1]=htonl(ans[1]);
@@ -283,7 +283,8 @@
 		    } else {
 		      /*it's compressed*/
 		        if(*tstr==0) tstr+=2;
-			resstr+=dn_expand(ans, ans+len, tstr-1, resstr, 200-strlen(resstr));
+			resstr+=dn_expand((u_char *)ans, (u_char *)(ans+len),
+			    tstr-1, resstr, 200-strlen(resstr));
 			tstr+=1;
 			ctr=0;
 		    }