diff --git a/src/chatmodel.cpp b/src/chatmodel.cpp index 6d6a216..8b5f97d 100644 --- a/src/chatmodel.cpp +++ b/src/chatmodel.cpp @@ -545,8 +545,8 @@ Tx MainWindow::createTxFromChatPage() { ////QString to char+ (not working, it will not decrypt) /*char *memoIncoming = NULL; - memoIncoming = new char[lenght1+1]; - strncpy(memoIncoming, memo.toLocal8Bit(), lenght1+1);*/ + memoIncoming = new char[memo.length()+1]; + strncpy(memoIncoming, memo.toLocal8Bit(), [memo.length()+1);*/ ///////////////////////////if we take the std::string (of the encryption output) instead of QString memo, it will decrypt////////