2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

"\0" is a rather strange way of representing the empty string

This commit is contained in:
Andreas Gustafsson
2001-06-15 23:25:20 +00:00
parent 30751145f8
commit 0eace215bd

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: controlconf.c,v 1.11 2001/05/31 21:49:11 tale Exp $ */
/* $Id: controlconf.c,v 1.12 2001/06/15 23:25:20 gson Exp $ */
#include <config.h>
@@ -729,7 +729,7 @@ make_automagic_key(isc_mem_t *mctx) {
isc_buffer_init(&key_txtbuffer, &key_txtsecret,
sizeof(key_txtsecret));
isc_buffer_usedregion(&key_rawbuffer, &key_rawregion);
result = isc_base64_totext(&key_rawregion, -1, "\0",
result = isc_base64_totext(&key_rawregion, -1, "",
&key_txtbuffer);
}