ivandasch commented on a change in pull request #8118:
URL: https://github.com/apache/ignite/pull/8118#discussion_r479225082



##########
File path: 
modules/platforms/cpp/thin-client/include/ignite/thin/transactions/transactions.h
##########
@@ -181,9 +111,11 @@ namespace ignite
                 
ClientTransactions(ignite::impl::thin::transactions::TransactionsProxy& impl, 
const std::string& lbl) :
                     proxy(impl)
                 {
-                    char* l = new char[lbl.size() + 1];
+                    ignite::common::FixedSizeArray<char> *label0 = new 
ignite::common::FixedSizeArray<char>(lbl.size() + 1);
+
+                    strcpy(label0->GetData(), lbl.c_str());
 
-                    label = strcpy(l, lbl.c_str());
+                    label = 
ignite::common::concurrent::SharedPointer<ignite::common::FixedSizeArray<char> 
>(label0);

Review comment:
       
`ignite::common::concurrent::SharedPointer<ignite::common::FixedSizeArray<char>>`




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to