summaryrefslogtreecommitdiff
path: root/plugins/Utils/mir_buffer.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-06-19 16:19:57 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-06-19 16:19:57 +0000
commitd55f17dea8734cfb458fd8fcbac684d141b181af (patch)
tree4c6d8ea7526b92f89c22b9d299bf01f8278072c8 /plugins/Utils/mir_buffer.h
parent4a67a2dabbdf4aefbe729779f3be84177bbe9274 (diff)
various quirks during MS_DB_TIME_TIMESTAMPTOSTRINGT calls
git-svn-id: http://svn.miranda-ng.org/main/trunk@14265 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Utils/mir_buffer.h')
-rw-r--r--plugins/Utils/mir_buffer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Utils/mir_buffer.h b/plugins/Utils/mir_buffer.h
index 5391b1bcf4..eb7b084579 100644
--- a/plugins/Utils/mir_buffer.h
+++ b/plugins/Utils/mir_buffer.h
@@ -470,7 +470,7 @@ static void ReplaceVars(Buffer<TCHAR> *buffer, MCONTACT hContact, TCHAR **variab
DBTIMETOSTRINGT tst = {0};
tst.szFormat = _T("d s");
tst.szDest = tmp;
- tst.cbDest = 128;
+ tst.cbDest = SIZEOF(tmp);
CallService(MS_DB_TIME_TIMESTAMPTOSTRINGT, (WPARAM) time(NULL), (LPARAM) &tst);
buffer->replace(j, i + 1, tmp);
}