Commit 14f51918 authored by Konstantinos Chatzilygeroudis's avatar Konstantinos Chatzilygeroudis
Browse files

Increase hostname max size in limbo sys tools

parent 27dd44d8
......@@ -68,8 +68,8 @@ namespace limbo {
/// easy way to get the hostame
inline std::string hostname()
{
char hostname[30];
int res = gethostname(hostname, 30);
char hostname[50];
int res = gethostname(hostname, 50);
assert(res == 0);
res = 0; // avoid a warning in opt mode
return std::string(hostname);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment