diff options
author | ache <ache@FreeBSD.org> | 1997-03-02 21:40:17 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-03-02 21:40:17 +0000 |
commit | 26bd0fe0b6dea0e6554f05bdc016f2b27dd7eb53 (patch) | |
tree | a63f4d702c91515a5b5db62bdb64edc97698bcd6 /usr.bin/at/at.c | |
parent | 099f4dd08d1b65b2700f944d35935d805dfb68d2 (diff) | |
download | FreeBSD-src-26bd0fe0b6dea0e6554f05bdc016f2b27dd7eb53.zip FreeBSD-src-26bd0fe0b6dea0e6554f05bdc016f2b27dd7eb53.tar.gz |
Fix MAXLOGNAME usage, the code has wrong assumption that it must be
NULL terminated
Diffstat (limited to 'usr.bin/at/at.c')
-rw-r--r-- | usr.bin/at/at.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/at/at.c b/usr.bin/at/at.c index cd2d54d..84e7dbd 100644 --- a/usr.bin/at/at.c +++ b/usr.bin/at/at.c @@ -53,10 +53,10 @@ #include <locale.h> #endif -#if (MAXLOGNAME-1) > UT_NAMESIZE +#if MAXLOGNAME > UT_NAMESIZE #define LOGNAMESIZE UT_NAMESIZE #else -#define LOGNAMESIZE (MAXLOGNAME-1) +#define LOGNAMESIZE MAXLOGNAME #endif /* Local headers */ @@ -92,7 +92,7 @@ enum { ATQ, ATRM, AT, BATCH, CAT }; /* what program we want to run */ /* File scope variables */ -static char rcsid[] = "$Id$"; +static char rcsid[] = "$Id: at.c,v 1.10 1997/02/22 19:54:04 peter Exp $"; char *no_export[] = { "TERM", "TERMCAP", "DISPLAY", "_" |