blob: 0472133837bf0fd972d831d6bb852d426cc603b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
$NetBSD: patch-bb,v 1.1 2005/12/14 13:53:24 joerg Exp $
--- icb/unix.c.orig 2005-12-13 16:41:59.000000000 +0000
+++ icb/unix.c
@@ -6,6 +6,7 @@
#include <sys/types.h>
#include <sys/param.h>
+#include <limits.h>
#include <stdio.h>
#include "icb.h"
#include "externs.h"
@@ -219,7 +220,11 @@ char *s;
struct passwd *pw;
char login[17];
char *p = login;
+#ifdef NAME_MAX
+ static char path[NAME_MAX + 1];
+#else
static char path[MAXNAMLEN+1];
+#endif
/* has to start with a tilde */
if (*s++ != '~')
|