From 0d6aef849186646462029ce158da0ab4a0b8d91f Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Tue, 26 Feb 2013 17:51:44 +0100 Subject: Use secure versions of time/string functions on Windows. --- src/platforms/windows/windowsHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/platforms/windows/windowsHandler.cpp') 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; -- cgit v1.2.3