From 94d9540cae85d2f9e145fe4d2986e84b46bbd052 Mon Sep 17 00:00:00 2001 From: "John Hodge (sonata)" Date: Wed, 8 May 2013 14:54:20 +0800 Subject: [PATCH] Usermode/init - Fixed early free of command, fixed %s on array --- Usermode/Applications/init_src/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } -- 2.20.1