From 26bd0fe0b6dea0e6554f05bdc016f2b27dd7eb53 Mon Sep 17 00:00:00 2001 From: ache Date: Sun, 2 Mar 1997 21:40:17 +0000 Subject: Fix MAXLOGNAME usage, the code has wrong assumption that it must be NULL terminated --- usr.bin/at/at.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin/at/at.c') 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 #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", "_" -- cgit v1.1