16 lines
432 B
Diff
16 lines
432 B
Diff
--- a/dns.c
|
|
+++ b/dns.c
|
|
@@ -115,10 +115,10 @@ gethinfo(char *hostname, char *cpu, int cpulen, char *os, int oslen)
|
|
(u_char *)cp, (char *)bp, buflen)) < 0)
|
|
break;
|
|
cp += n;
|
|
- type = _getshort(cp);
|
|
+ type = ns_get16(cp);
|
|
cp += sizeof(u_short); /* class */
|
|
cp += sizeof(u_short) + sizeof(u_int32_t);
|
|
- n = _getshort(cp);
|
|
+ n = ns_get16(cp);
|
|
cp += sizeof(u_short);
|
|
if (type == T_HINFO) {
|
|
/* Unpack */
|