diff options
Diffstat (limited to 'src/platforms/windows/windowsHandler.cpp')
-rw-r--r-- | src/platforms/windows/windowsHandler.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/platforms/windows/windowsHandler.cpp b/src/platforms/windows/windowsHandler.cpp index b188af64..99b52cdf 100644 --- a/src/platforms/windows/windowsHandler.cpp +++ b/src/platforms/windows/windowsHandler.cpp @@ -224,7 +224,13 @@ const vmime::string windowsHandler::getHostName() const return hostname; if (::strlen(hostname) == 0) + { +#if VMIME_HAVE_STRCPY_S ::strcpy_s(hostname, "localhost"); +#else + ::strcpy(hostname, "localhost"); +#endif // VMIME_HAVE_STRCPY_S + } // Try to get canonical name for the hostname struct addrinfo hints; |