diff options
author | phk <phk@FreeBSD.org> | 1998-07-22 05:45:11 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1998-07-22 05:45:11 +0000 |
commit | 7ebd4f74fbc6a8f7433b4480b4e1983271902485 (patch) | |
tree | 650031e0e7b8558261d1e5f9b802395faa559919 /sbin | |
parent | 69a37778c2b29bff10561dbdc39e0782e267cbff (diff) | |
download | FreeBSD-src-7ebd4f74fbc6a8f7433b4480b4e1983271902485.zip FreeBSD-src-7ebd4f74fbc6a8f7433b4480b4e1983271902485.tar.gz |
Memory management error in init.
PR: 7320
Reviewed by: phk
Submitted by: Anders Thulin <Anders.X.Thulin@telia.se>
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/init/init.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sbin/init/init.c b/sbin/init/init.c index b99fde8..6ed059f 100644 --- a/sbin/init/init.c +++ b/sbin/init/init.c @@ -45,7 +45,7 @@ static const char copyright[] = static char sccsid[] = "@(#)init.c 8.1 (Berkeley) 7/15/93"; #endif static const char rcsid[] = - "$Id$"; + "$Id: init.c,v 1.30 1998/07/06 06:56:08 charnier Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -583,6 +583,9 @@ single_user() "Enter root password, or ^D to go multi-user\n"; char *clear, *password; #endif +#ifdef DEBUGSHELL + char altshell[128]; +#endif /* * If the kernel is in secure mode, downgrade it to insecure mode. @@ -632,7 +635,7 @@ single_user() #ifdef DEBUGSHELL { - char altshell[128], *cp = altshell; + char *cp = altshell; int num; #define SHREQUEST \ |