blob: 15cbc2c02015c295cb8aaec4592fe6961daa4ae6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$NetBSD: patch-ab,v 1.3 2002/03/13 02:16:12 wiz Exp $
--- dns.c.orig Wed Mar 6 12:27:37 2002
+++ dns.c
@@ -752,7 +752,7 @@
void dorequest(char *s,int type,word id){
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,buf,MaxPacketsize);
if (r == -1){
restell("Resolver error: Query too large.");
|