From 15885798696882ce786c1a0a55e0d4b45299af58 Mon Sep 17 00:00:00 2001 From: millert <> Date: Wed, 25 Jun 2008 14:51:27 +0000 Subject: [PATCH] Add _PW_BUF_LEN define and use it instead of hard-coding 1024 for the buffer size. OK deraadt@ --- src/include/pwd.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/include/pwd.h b/src/include/pwd.h index 572ee679..b24e7f5e 100644 --- a/src/include/pwd.h +++ b/src/include/pwd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pwd.h,v 1.19 2008/06/24 14:31:59 deraadt Exp $ */ +/* $OpenBSD: pwd.h,v 1.20 2008/06/25 14:51:27 millert Exp $ */ /* $NetBSD: pwd.h,v 1.9 1996/05/15 21:36:45 jtc Exp $ */ /*- @@ -65,6 +65,7 @@ #define _PASSWORD_LEN 128 /* max length, not counting NUL */ #define _PW_NAME_LEN 31 /* max length, not counting NUL */ /* Should be MAXLOGNAME - 1 */ +#define _PW_BUF_LEN 1024 /* length of getpw*_r buffer */ #define _PASSWORD_NOUID 0x01 /* flag for no specified uid. */ #define _PASSWORD_NOGID 0x02 /* flag for no specified gid. */