summaryrefslogtreecommitdiff
path: root/plugins/SecureIM/src/dbevent.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-12-20 13:34:45 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-12-20 13:34:45 +0300
commite96132b4d5344d2d58d247906bcaefccfb9d5253 (patch)
tree24a9524e4900547f2ba3a461e228fd3c98c0410d /plugins/SecureIM/src/dbevent.cpp
parent4dac8bd56f9116ac76423b2664286ed894ca80c2 (diff)
DBEVENTINFO::hContact to be returned inside an event, no need to call db_event_getContact() just after db_event_get()
Diffstat (limited to 'plugins/SecureIM/src/dbevent.cpp')
-rw-r--r--plugins/SecureIM/src/dbevent.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/SecureIM/src/dbevent.cpp b/plugins/SecureIM/src/dbevent.cpp
index 0905da4a5f..66921acadc 100644
--- a/plugins/SecureIM/src/dbevent.cpp
+++ b/plugins/SecureIM/src/dbevent.cpp
@@ -8,6 +8,6 @@ void HistoryLog(MCONTACT hContact, LPCSTR szText)
dbei.timestamp = time(0);
dbei.eventType = EVENTTYPE_MESSAGE;
dbei.cbBlob = (int)mir_strlen(szText) + 1;
- dbei.pBlob = (uint8_t*)szText;
+ dbei.pBlob = (char *)szText;
db_event_add(0, &dbei);
}