--- embedaddon/dhcp/minires/res_mkquery.c 2012/10/09 09:06:54 1.1.1.1 +++ embedaddon/dhcp/minires/res_mkquery.c 2013/07/22 12:54:39 1.1.1.1.2.1 @@ -76,7 +76,7 @@ #if defined(LIBC_SCCS) && !defined(lint) static const char sccsid[] = "@(#)res_mkquery.c 8.1 (Berkeley) 6/4/93"; -static const char rcsid[] = "$Id: res_mkquery.c,v 1.1.1.1 2012/10/09 09:06:54 misho Exp $"; +static const char rcsid[] = "$Id: res_mkquery.c,v 1.1.1.1.2.1 2013/07/22 12:54:39 misho Exp $"; #endif /* LIBC_SCCS and not lint */ #include @@ -139,7 +139,7 @@ res_nmkquery(res_state statp, switch (op) { case QUERY: /*FALLTHROUGH*/ case NS_NOTIFY_OP: - if ((buflen -= QFIXEDSZ) < 0) + if ((int) (buflen -= QFIXEDSZ) < 0) return ISC_R_NOSPACE; if ((n = dn_comp(dname, cp, buflen, dnptrs, lastdnptr)) < 0) return ISC_R_NOSPACE;