Back out MAXLOGNAME fix, Bruce points that copyinstr require NUL

This commit is contained in:
Andrey A. Chernov 1997-03-03 07:59:54 +00:00
parent 27117f574e
commit 08a77c42e1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=23318
3 changed files with 5 additions and 5 deletions

View File

@ -279,7 +279,7 @@ int wear[NUMOFWORDS];
char beenthere[NUMOFROOMS+1];
char injuries[NUMOFINJURIES];
char uname[MAXLOGNAME+1];
char uname[MAXLOGNAME];
struct wlist {
char *string;

View File

@ -53,10 +53,10 @@
#include <locale.h>
#endif
#if MAXLOGNAME > UT_NAMESIZE
#if (MAXLOGNAME-1) > UT_NAMESIZE
#define LOGNAMESIZE UT_NAMESIZE
#else
#define LOGNAMESIZE MAXLOGNAME
#define LOGNAMESIZE (MAXLOGNAME-1)
#endif
/* Local headers */

View File

@ -44,10 +44,10 @@
#include "bitmap.h"
#include "pwupd.h"
#if MAXLOGNAME > UT_NAMESIZE
#if (MAXLOGNAME-1) > UT_NAMESIZE
#define LOGNAMESIZE UT_NAMESIZE
#else
#define LOGNAMESIZE MAXLOGNAME
#define LOGNAMESIZE (MAXLOGNAME-1)
#endif
static int print_user(struct passwd * pwd, int pretty);