summaryrefslogtreecommitdiff
path: root/plugins/IEView/src/TabSRMMHTMLBuilder.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-16 18:13:43 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-16 18:13:43 +0000
commite95b95c3931710251ebfd2a8fca53da3764f3094 (patch)
treee6c05dc93ef21d15bee73f24e5d487e27188ecd0 /plugins/IEView/src/TabSRMMHTMLBuilder.cpp
parent5b2ebe7fef3a15c5db381816241bf16850c8176a (diff)
fix for strncat use
git-svn-id: http://svn.miranda-ng.org/main/trunk@13635 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/IEView/src/TabSRMMHTMLBuilder.cpp')
-rw-r--r--plugins/IEView/src/TabSRMMHTMLBuilder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/IEView/src/TabSRMMHTMLBuilder.cpp b/plugins/IEView/src/TabSRMMHTMLBuilder.cpp
index 981ffc047d..675430af55 100644
--- a/plugins/IEView/src/TabSRMMHTMLBuilder.cpp
+++ b/plugins/IEView/src/TabSRMMHTMLBuilder.cpp
@@ -194,7 +194,7 @@ char* TabSRMMHTMLBuilder::timestampToString(DWORD dwFlags, time_t check, int isG
}
}
CallService(MS_DB_TIME_TIMESTAMPTOSTRING, check, (LPARAM)& dbtts);
- strncat(szResult, str, 500);
+ strncat(szResult, str, SIZEOF(szResult) - mir_strlen(szResult));
mir_strncpy(szResult, ptrA(mir_utf8encode(szResult)), 500);
return szResult;
}