summaryrefslogtreecommitdiff
path: root/testing/toxic/prompt.c
diff options
context:
space:
mode:
Diffstat (limited to 'testing/toxic/prompt.c')
-rw-r--r--testing/toxic/prompt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/testing/toxic/prompt.c b/testing/toxic/prompt.c
index 3fa9d77c..463b9352 100644
--- a/testing/toxic/prompt.c
+++ b/testing/toxic/prompt.c
@@ -89,7 +89,9 @@ static void execute(ToxWindow* self, char* cmd) {
89 } 89 }
90 90
91 dht.ip.i = resolved_address; 91 dht.ip.i = resolved_address;
92 DHT_bootstrap(dht, hex_string_to_bin(key)); 92 unsigned char *binary_string = hex_string_to_bin(key);
93 DHT_bootstrap(dht, binary_string);
94 free(binary_string);
93 } 95 }
94 else if(!strncmp(cmd, "add ", strlen("add "))) { 96 else if(!strncmp(cmd, "add ", strlen("add "))) {
95 uint8_t id_bin[32]; 97 uint8_t id_bin[32];