mirror of
https://github.com/FDOS/kernel.git
synced 2025-07-27 07:44:09 +02:00
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 */
|
/* process 0 */
|
||||||
/* Execute command.com from the drive we just booted from */
|
/* Execute command.com from the drive we just booted from */
|
||||||
memset(Cmd.ctBuffer, 0, sizeof(Cmd.ctBuffer));
|
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++)
|
for (Cmd.ctCount = 0; Cmd.ctCount < sizeof(Cmd.ctBuffer); Cmd.ctCount++)
|
||||||
if (Cmd.ctBuffer[Cmd.ctCount] == '\r')
|
if (Cmd.ctBuffer[Cmd.ctCount] == '\r')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user