From d2d1163f55b06475e6336b9a9f323ddcddb05496 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Fri, 8 Oct 1999 23:52:39 +0000 Subject: [PATCH] um, ignore that last change. using token.value.as_char will not be correct on big-endian systems. use as_ulong but cast to unsigned char. --- lib/dns/rdata/in_1/a6_38.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dns/rdata/in_1/a6_38.c b/lib/dns/rdata/in_1/a6_38.c index cf5612879c..ec8e35b486 100644 --- a/lib/dns/rdata/in_1/a6_38.c +++ b/lib/dns/rdata/in_1/a6_38.c @@ -15,7 +15,7 @@ * SOFTWARE. */ - /* $Id: a6_38.c,v 1.16 1999/10/08 22:46:28 tale Exp $ */ + /* $Id: a6_38.c,v 1.17 1999/10/08 23:52:39 tale Exp $ */ /* draft-ietf-ipngwg-dns-lookups-03.txt */ @@ -47,7 +47,7 @@ fromtext_in_a6(dns_rdataclass_t rdclass, dns_rdatatype_t type, if (token.value.as_ulong > 128) return (DNS_R_RANGE); - prefixlen = token.value.as_char; + prefixlen = (unsigned char)token.value.as_ulong; RETERR(mem_tobuffer(target, &prefixlen, 1)); /* suffix */