Merge pull request #8 from afh/pull/macosx

Use _POSIX_HOST_NAME_MAX
This commit is contained in:
Christian Neukirchen 2015-02-11 15:19:03 +01:00
commit 81c05b3a51

View File

@ -324,7 +324,7 @@ kbfunc_ssh(struct client_ctx *cc, union arg *arg)
struct menu_q menuq;
FILE *fp;
char *buf, *lbuf, *p;
char hostbuf[HOST_NAME_MAX+1];
char hostbuf[_POSIX_HOST_NAME_MAX+1];
char path[PATH_MAX];
int l;
size_t len;