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; }