summaryrefslogtreecommitdiff
path: root/net/mtr/patches/patch-ab
blob: aeb577bbe32edf4945e3819945614b7f1f67e527 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-ab,v 1.5 2004/10/27 16:18:31 wiz Exp $

--- dns.c.orig	2004-10-27 11:47:06.000000000 -0400
+++ dns.c	2004-10-27 11:47:52.000000000 -0400
@@ -814,9 +814,9 @@
 {
   packetheader *hp;
   int r,i;
-  int buf[(MaxPacketsize/sizeof (int))+1];
+  unsigned char buf[MaxPacketsize];
 
-  r = res_mkquery(QUERY,s,C_IN,type,NULL,0,NULL,(unsigned char*)buf,MaxPacketsize);
+  r = res_mkquery(QUERY,s,C_IN,type,NULL,0,NULL,buf,MaxPacketsize);
   if (r == -1) {
     restell("Resolver error: Query too large.");
     return;