aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vmime/platforms/posix/posixHandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vmime/platforms/posix/posixHandler.cpp b/src/vmime/platforms/posix/posixHandler.cpp
index a73d42d7..c031aecf 100644
--- a/src/vmime/platforms/posix/posixHandler.cpp
+++ b/src/vmime/platforms/posix/posixHandler.cpp
@@ -236,7 +236,7 @@ const vmime::string posixHandler::getHostName() const
}
// Get host name
- char hostname[HOST_NAME_MAX];
+ char hostname[256];
::gethostname(hostname, sizeof(hostname));
hostname[sizeof(hostname) - 1] = '\0';