summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rnprotocol/rnpclientcomm2.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/rnprotocol/rnpclientcomm2.cc b/rnprotocol/rnpclientcomm2.cc
index 3974bd5..191266e 100644
--- a/rnprotocol/rnpclientcomm2.cc
+++ b/rnprotocol/rnpclientcomm2.cc
@@ -786,14 +786,14 @@ void RnpClientComm::executeExecuteUpdateQuery(const char *query) throw(r_Error)
decoder.getNextParameter();
int colNo = decoder.getDataAsInteger();
decoder.getNextParameter();
- const char* token = decoder.getDataAsString();
+ std::string token = decoder.getDataAsString();
clearAnswer();
if( status == 2 || status == 3 )
{
LEAVE( "RnpClientComm::executeExecuteUpdateQuery(): exception, status = " << status );
- throw r_Equery_execution_failed( errNo, lineNo, colNo, token );
+ throw r_Equery_execution_failed( errNo, lineNo, colNo, token.c_str() );
}
if( status == 1 )