Package: cwm / 5.6-4

fix-host-name-max Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Change HOST_NAME_MAX to _POSIX_HOST_NAME_MAX to support kFreeBSD
Author: James McDonald <james@jamesmcdonald.com>
Bug-Debian: https://bugs.debian.org/782418
--- a/kbfunc.c
+++ b/kbfunc.c
@@ -324,7 +324,7 @@
 	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;