From 9689c1168267c7c12c403aa9d96fc765dc44ef66 Mon Sep 17 00:00:00 2001 From: cryptonote-social Date: Fri, 25 Dec 2020 13:46:20 -0800 Subject: [PATCH] change to const char* --- capi/niceapi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/capi/niceapi.h b/capi/niceapi.h index c7a2f3d..186cc7e 100644 --- a/capi/niceapi.h +++ b/capi/niceapi.h @@ -197,7 +197,7 @@ next_chat_response next_chat() { // only success is returned. Message might not be sent immediately, e.g. miner may wait to send it // with the next mined share. int send_chat(char *message) { - SendChat(message); + SendChat(const_cast(message)); return 0; }