mirror of https://github.com/FDOS/kernel.git
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
This commit is contained in:
parent
935181421c
commit
82e66852ee
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue