diff options
Diffstat (limited to 'usr.sbin/identd/identd.c')
-rw-r--r-- | usr.sbin/identd/identd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/identd/identd.c b/usr.sbin/identd/identd.c index 7dc119a5b40..cd11699bf9a 100644 --- a/usr.sbin/identd/identd.c +++ b/usr.sbin/identd/identd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: identd.c,v 1.26 2014/07/13 17:53:41 claudio Exp $ */ +/* $OpenBSD: identd.c,v 1.27 2015/01/16 06:40:17 deraadt Exp $ */ /* * Copyright (c) 2013 David Gwynne <dlg@openbsd.org> @@ -38,6 +38,7 @@ #include <fcntl.h> #include <pwd.h> #include <stdio.h> +#include <limits.h> #include <stdlib.h> #include <string.h> #include <syslog.h> @@ -436,7 +437,7 @@ parent_token(struct ident_resolver *r, struct passwd *pw) void parent_noident(struct ident_resolver *r, struct passwd *pw) { - char path[MAXPATHLEN]; + char path[PATH_MAX]; struct stat st; int rv; |