aboutsummaryrefslogtreecommitdiffstats
path: root/src/platforms/windows/windowsHandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/platforms/windows/windowsHandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/platforms/windows/windowsHandler.cpp b/src/platforms/windows/windowsHandler.cpp
index b4f605ec..b188af64 100644
--- a/src/platforms/windows/windowsHandler.cpp
+++ b/src/platforms/windows/windowsHandler.cpp
@@ -224,7 +224,7 @@ const vmime::string windowsHandler::getHostName() const
return hostname;
if (::strlen(hostname) == 0)
- ::strcpy(hostname, "localhost");
+ ::strcpy_s(hostname, "localhost");
// Try to get canonical name for the hostname
struct addrinfo hints;