summaryrefslogtreecommitdiff
path: root/plugins/Dbx_sqlite/src/dbevents.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-10-17 23:00:41 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-10-17 23:00:41 +0300
commit8c2746974921d380ed7e64ed5217a42262f1e965 (patch)
tree9a0f23b971770c58e0d955e7f066f01ad2cb241f /plugins/Dbx_sqlite/src/dbevents.cpp
parentd33534078fedb39d64edb6fad02caab675d09a42 (diff)
crash fix
Diffstat (limited to 'plugins/Dbx_sqlite/src/dbevents.cpp')
-rw-r--r--plugins/Dbx_sqlite/src/dbevents.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Dbx_sqlite/src/dbevents.cpp b/plugins/Dbx_sqlite/src/dbevents.cpp
index 762343c4b9..db8260eec9 100644
--- a/plugins/Dbx_sqlite/src/dbevents.cpp
+++ b/plugins/Dbx_sqlite/src/dbevents.cpp
@@ -319,7 +319,7 @@ BOOL CDbxSQLite::GetEvent(MEVENT hDbEvent, DBEVENTINFO *dbei)
dbei->cbBlob = cbBlob;
if (bytesToCopy && dbei->pBlob) {
BYTE *data = (BYTE*)sqlite3_column_blob(stmt, 5);
- memcpy(dbei->pBlob, data, dbei->cbBlob);
+ memcpy(dbei->pBlob, data, bytesToCopy);
}
sqlite3_reset(stmt);
return 0;