X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/5ec330c9443a3ad42258159e11013c116d9c4978..4c064456f5d2093f802b474736d5be5051f857a0:/stglibs/srvconf.lib/servconf.cpp?ds=sidebyside diff --git a/stglibs/srvconf.lib/servconf.cpp b/stglibs/srvconf.lib/servconf.cpp index 16878f18..430de3c1 100644 --- a/stglibs/srvconf.lib/servconf.cpp +++ b/stglibs/srvconf.lib/servconf.cpp @@ -350,7 +350,7 @@ if ((ret = nt.Connect()) != st_ok) errorMsg = nt.GetError(); return ret; } -if ((ret = nt.Transact(request.c_str(), ParserRecv, this)) != st_ok) +if ((ret = nt.Transact(request, ParserRecv, this)) != st_ok) { errorMsg = nt.GetError(); return ret; @@ -370,7 +370,7 @@ if ((ret = nt.Connect()) != st_ok) return ret; } std::string response; -if ((ret = nt.Transact(request.c_str(), SimpleRecv, &response)) != st_ok) +if ((ret = nt.Transact(request, SimpleRecv, &response)) != st_ok) { errorMsg = nt.GetError(); callback(false, errorMsg, "", data);