From: John Hodge (sonata) Date: Wed, 8 May 2013 06:54:20 +0000 (+0800) Subject: Usermode/init - Fixed early free of command, fixed %s on array X-Git-Tag: rel0.15~484^2~6 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=94d9540cae85d2f9e145fe4d2986e84b46bbd052;p=tpg%2Facess2.git Usermode/init - Fixed early free of command, fixed %s on array --- diff --git a/Usermode/Applications/init_src/main.c b/Usermode/Applications/init_src/main.c index 87eccde4..1cdf98b6 100644 --- a/Usermode/Applications/init_src/main.c +++ b/Usermode/Applications/init_src/main.c @@ -252,7 +252,6 @@ int ProcessInittab(const char *Path) goto lineError; } AddKTerminal(id, command); - free(command); } else if(strcmp(cmdbuf, "stty") == 0 ) { // stty [78][NOE][012][bB] @@ -444,7 +443,7 @@ int SpawnSTerm(tInitProgram *Program) int out = _SysOpen(Program->TypeInfo.STerm.Path, OPENFLAG_WRITE); if(in == -1 || out == -1 ) { - _SysDebug("Unable to open serial '%s' for '%s'", Program->TypeInfo.STerm.Path, Program->Command); + _SysDebug("Unable to open serial port '%s'", Program->TypeInfo.STerm.Path); return -1; }