From e21a10b92274ca785e1c0f97431ce64307939721 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 14 Jun 2015 22:11:44 +0000 Subject: crash fix because of wrongly calculated array length git-svn-id: http://svn.miranda-ng.org/main/trunk@14170 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/QuickSearch/i_ok.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/QuickSearch/i_ok.inc b/plugins/QuickSearch/i_ok.inc index e55ac3d945..7963da1808 100644 --- a/plugins/QuickSearch/i_ok.inc +++ b/plugins/QuickSearch/i_ok.inc @@ -174,7 +174,7 @@ var strdatetime:array [0..63] of WideChar; dbtts:TDBTIMETOSTRING; begin - dbtts.cbDest :=sizeof(strdatetime); + dbtts.cbDest :=Length(strdatetime); dbtts.szDest.w :=@strdatetime; dbtts.szFormat.w:='d - t'; CallService(MS_DB_TIME_TIMESTAMPTOSTRINGT,data,lparam(@dbtts)); -- cgit v1.2.3