Use _POSIX_HOST_NAME_MAX
@ -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;
The note is not visible to the blocked user.