geomyidae

A small C-based gopherd. (gopher://bitreich.org/1/scm/geomyidae)
git clone git://r-36.net/geomyidae
Log | Files | Refs | README | LICENSE

commit 37d8397b8e850f2ba35ae8d4a109360da294732f
parent 904c8907275f13139e91bf1c3179f745d69f7fac
Author: Christoph Lohmann <20h@r-36.net>
Date:   Mon, 12 Nov 2018 22:42:00 +0100

Annoy_Leot found this. I had to change it. It is HOST_NAME_MAX.

Diffstat:
main.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main.c b/main.c @@ -480,7 +480,7 @@ main(int argc, char *argv[]) usage(); if (ohost == NULL) { - /* Do not use MAX_NAME_HOST, it is not defined on NetBSD. */ + /* Do not use HOST_NAME_MAX, it is not defined on NetBSD. */ ohost = xcalloc(1, 256+1); if (gethostname(ohost, 256) < 0) { perror("gethostname");