From 9805b668b7f473494cd0cd7fe04e61571ac9015a Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Wed, 2 Aug 2000 20:27:14 +0000 Subject: [PATCH] isc_buffer_putmem() takes an unsigned char as its second argument but a literal string is of type char, so a couple of different OSs were complaining. The 2nd parameter to isc_buffer_putmem() should probably be a const void *, but rather than deal with changing the API and whatever that implies with regard to versioning and whatever else, I have instead worked around the issue by using isc_buffer_putuint8() to add a NUL to the buffer in the two places that isc_buffer_putmem(&b, "", 1) was used. --- bin/dnssec/dnssec-signzone.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/dnssec/dnssec-signzone.c b/bin/dnssec/dnssec-signzone.c index 3600d31a57..3bae6becf7 100644 --- a/bin/dnssec/dnssec-signzone.c +++ b/bin/dnssec/dnssec-signzone.c @@ -17,7 +17,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: dnssec-signzone.c,v 1.86 2000/08/02 13:51:02 bwelling Exp $ */ +/* $Id: dnssec-signzone.c,v 1.87 2000/08/02 20:27:14 tale Exp $ */ #include @@ -528,7 +528,7 @@ importparentsig(dns_db_t *db, dns_dbversion_t *version, dns_dbnode_t *node, check_result(result, "dns_name_totext()"); if (isc_buffer_availablelength(&b) == 0) fatal("name '%s' is too long", nametostr(name)); - isc_buffer_putmem(&b, "", 1); + isc_buffer_putuint8(&b, 0); result = dns_db_create(mctx, "rbt", name, dns_dbtype_zone, dns_db_class(db), 0, NULL, &newdb); check_result(result, "dns_db_create()"); @@ -611,7 +611,7 @@ haschildkey(dns_db_t *db, dns_name_t *name) { check_result(result, "dns_name_totext()"); if (isc_buffer_availablelength(&b) == 0) fatal("name '%s' is too long", nametostr(name)); - isc_buffer_putmem(&b, "", 1); + isc_buffer_putuint8(&b, 0); /* Add a NUL. */ result = dns_db_create(mctx, "rbt", name, dns_dbtype_zone, dns_db_class(db), 0, NULL, &newdb); check_result(result, "dns_db_create()");