aboutsummaryrefslogtreecommitdiffstats
path: root/src/platforms/windows/windowsHandler.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2013-02-26 16:51:44 +0000
committerVincent Richard <[email protected]>2013-02-26 16:51:44 +0000
commit0d6aef849186646462029ce158da0ab4a0b8d91f (patch)
treeab5f70617344b524e98d9884f90cf5aeabc9b096 /src/platforms/windows/windowsHandler.cpp
parentFixed warnings about unused variables. (diff)
downloadvmime-0d6aef849186646462029ce158da0ab4a0b8d91f.tar.gz
vmime-0d6aef849186646462029ce158da0ab4a0b8d91f.zip
Use secure versions of time/string functions on Windows.
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;