summaryrefslogtreecommitdiff
path: root/plugins/MyDetails/src/data.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MyDetails/src/data.cpp')
-rw-r--r--plugins/MyDetails/src/data.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/MyDetails/src/data.cpp b/plugins/MyDetails/src/data.cpp
index 930afa2bda..103f4d2f96 100644
--- a/plugins/MyDetails/src/data.cpp
+++ b/plugins/MyDetails/src/data.cpp
@@ -105,10 +105,9 @@ Protocol::~Protocol()
void Protocol::lcopystr(TCHAR *dest, TCHAR *src, size_t maxlen)
{
- if (lstrcmp(dest, src) != 0)
- {
+ if (lstrcmp(dest, src) != 0) {
data_changed = true;
- lstrcpyn(dest, src, maxlen);
+ lstrcpyn(dest, src, (DWORD)maxlen);
}
}