mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-06 16:15:23 -04:00
Added photo slide show
added time stamps on comments photo items now store real image fixed bug in rsdataservice due to stack overflow (large photo!) git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-gxs-b1@5672 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
87856b2c9e
commit
b166fe0c99
8 changed files with 90 additions and 76 deletions
|
@ -468,10 +468,11 @@ int RsDataService::storeMessage(std::map<RsNxsMsg *, RsGxsMsgMetaData *> &msg)
|
|||
cv.put(KEY_CHILD_TS, (int32_t)msgMetaPtr->mChildTs);
|
||||
|
||||
offset = 0;
|
||||
char msgData[msgPtr->msg.TlvSize()];
|
||||
char* msgData = new char[msgPtr->msg.TlvSize()];
|
||||
msgPtr->msg.SetTlv(msgData, msgPtr->msg.TlvSize(), &offset);
|
||||
ostrm.write(msgData, msgPtr->msg.TlvSize());
|
||||
ostrm.close();
|
||||
delete[] msgData;
|
||||
|
||||
mDb->sqlInsert(MSG_TABLE_NAME, "", cv);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue