diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-03-27 22:25:31 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-03-27 22:25:31 +0000 |
commit | e4302ad10ffffed04d4e11bfe9b11d2b389656a1 (patch) | |
tree | 62ccd91b84434992e14d108f3e560ae41478f0a6 /plugins/IEView/src/ScriverHTMLBuilder.cpp | |
parent | bcd3d5eedda6f93c8846f77848e950b4e78fcd81 (diff) |
IEView:
- Fixed HTML encoding
- minor bugfixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@12533 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/IEView/src/ScriverHTMLBuilder.cpp')
-rw-r--r-- | plugins/IEView/src/ScriverHTMLBuilder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/IEView/src/ScriverHTMLBuilder.cpp b/plugins/IEView/src/ScriverHTMLBuilder.cpp index e15d709236..9b60e69c5e 100644 --- a/plugins/IEView/src/ScriverHTMLBuilder.cpp +++ b/plugins/IEView/src/ScriverHTMLBuilder.cpp @@ -144,13 +144,13 @@ char *ScriverHTMLBuilder::timestampToString(DWORD dwFlags, time_t check, int mod today = mktime(&tm_today);
if (dwFlags & SMF_LOG_USERELATIVEDATE && check >= today) {
- strcpy(szResult, Translate("Today"));
+ strncpy(szResult, Translate("Today"), SIZEOF(szResult)-1);
if (mode == 0) {
strcat(szResult, ",");
}
}
else if (dwFlags & SMF_LOG_USERELATIVEDATE && check > (today - 86400)) {
- strcpy(szResult, Translate("Yesterday"));
+ strncpy(szResult, Translate("Yesterday"), SIZEOF(szResult)-1);
if (mode == 0) {
strcat(szResult, ",");
}
|