Pass the correct file offset when decoding a chat entry to see it in debug messages.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4010 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
31129c78de
commit
15d9d57dab
|
@ -803,7 +803,7 @@ bool ChatFile::loadSession(const String& id, ObjList& list, String* error,
|
|||
if (exiting())
|
||||
break;
|
||||
if (hdrFound) {
|
||||
ChatItem* entry = decodeChat(find,s->m_offset,buf.data(),n);
|
||||
ChatItem* entry = decodeChat(find,s->m_offset + processed,buf.data(),n);
|
||||
if (entry) {
|
||||
if (!find)
|
||||
list.append(entry);
|
||||
|
@ -833,7 +833,7 @@ bool ChatFile::loadSession(const String& id, ObjList& list, String* error,
|
|||
if (hdrFound && buf.length() && processed < s->m_length) {
|
||||
ChatItem* entry = 0;
|
||||
if (!(find && ok))
|
||||
entry = decodeChat(find,s->m_offset,buf.data(),buf.length());
|
||||
entry = decodeChat(find,s->m_offset + processed,buf.data(),buf.length());
|
||||
if (entry) {
|
||||
if (!find)
|
||||
list.append(entry);
|
||||
|
|
Loading…
Reference in New Issue