Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matthias Mayr
limbo
Commits
14f51918
Commit
14f51918
authored
Nov 24, 2017
by
Konstantinos Chatzilygeroudis
Browse files
Increase hostname max size in limbo sys tools
parent
27dd44d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/limbo/tools/sys.hpp
View file @
14f51918
...
...
@@ -68,8 +68,8 @@ namespace limbo {
/// easy way to get the hostame
inline
std
::
string
hostname
()
{
char
hostname
[
3
0
];
int
res
=
gethostname
(
hostname
,
3
0
);
char
hostname
[
5
0
];
int
res
=
gethostname
(
hostname
,
5
0
);
assert
(
res
==
0
);
res
=
0
;
// avoid a warning in opt mode
return
std
::
string
(
hostname
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment