diff --git a/src/wallet/plain_wallet_api.cpp b/src/wallet/plain_wallet_api.cpp index ca0f4dca..b77bc160 100644 --- a/src/wallet/plain_wallet_api.cpp +++ b/src/wallet/plain_wallet_api.cpp @@ -117,7 +117,8 @@ namespace plain_wallet std::string argss_1 = std::string("--remote-node=") + ip + ":" + port; std::string argss_2 = std::string("--disable-logs-init"); char * args[4]; - args[0] = "stub"; + static const char* arg0_stub = "stub"; + args[0] = const_cast(arg0_stub); args[1] = const_cast(argss_1.c_str()); args[2] = const_cast(argss_2.c_str()); args[3] = nullptr;