diff options
author | Vincent Richard <[email protected]> | 2013-02-26 16:51:44 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2013-02-26 16:51:44 +0000 |
commit | 0d6aef849186646462029ce158da0ab4a0b8d91f (patch) | |
tree | ab5f70617344b524e98d9884f90cf5aeabc9b096 /src/platforms/windows/windowsHandler.cpp | |
parent | Fixed warnings about unused variables. (diff) | |
download | vmime-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.cpp | 2 |
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; |