diff options
author | 2010-05-06 11:55:01 +0000 | |
---|---|---|
committer | 2010-05-06 11:55:01 +0000 | |
commit | 536c905ac875b710ecdf873142433e7e06df954d (patch) | |
tree | 8bccd4afbba27ac0064e1ec534df79fc539c3645 | |
parent | Fix favail format string. (diff) | |
download | wireguard-openbsd-536c905ac875b710ecdf873142433e7e06df954d.tar.xz wireguard-openbsd-536c905ac875b710ecdf873142433e7e06df954d.zip |
Use YPMAXRECORD instead of _PW_NAME_LEN here too.
ok robert@ pyr@
-rw-r--r-- | usr.sbin/ypldap/yp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ypldap/yp.c b/usr.sbin/ypldap/yp.c index 363075c3a33..2908d1cf804 100644 --- a/usr.sbin/ypldap/yp.c +++ b/usr.sbin/ypldap/yp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: yp.c,v 1.4 2009/10/10 23:51:56 robert Exp $ */ +/* $OpenBSD: yp.c,v 1.5 2010/05/06 11:55:01 ajacoutot Exp $ */ /* * Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org> * @@ -588,7 +588,7 @@ yp_make_val(struct ypresp_val *res, char *line) void yp_make_keyval(struct ypresp_key_val *res, char *key, char *line) { - static char keybuf[_PW_NAME_LEN+1]; + static char keybuf[YPMAXRECORD+1]; static char buf[LINE_WIDTH]; bzero(keybuf, sizeof(keybuf)); |