From 82e66852ee96249ffc010049c16052f9154f4ad6 Mon Sep 17 00:00:00 2001 From: Bart Oldeman Date: Mon, 26 Apr 2004 09:46:44 +0000 Subject: [PATCH] Config.cfgInitTail is a pointer now so sizeof isn't good. Just using strcpy helps F5 and F8. git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@901 6ac86273-5f31-0410-b378-82cca8765d1b --- kernel/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/main.c b/kernel/main.c index a62b5a7..f9ffc38 100644 --- a/kernel/main.c +++ b/kernel/main.c @@ -404,7 +404,7 @@ STATIC void kernel() /* process 0 */ /* Execute command.com from the drive we just booted from */ memset(Cmd.ctBuffer, 0, sizeof(Cmd.ctBuffer)); - memcpy(Cmd.ctBuffer, Config.cfgInitTail, sizeof(Config.cfgInitTail)); + strcpy(Cmd.ctBuffer, Config.cfgInitTail); for (Cmd.ctCount = 0; Cmd.ctCount < sizeof(Cmd.ctBuffer); Cmd.ctCount++) if (Cmd.ctBuffer[Cmd.ctCount] == '\r')