git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Usermode/init - Fixed early free of command, fixed %s on array
[tpg/acess2.git]
/
Usermode
/
Applications
/
init_src
/
main.c
diff --git
a/Usermode/Applications/init_src/main.c
b/Usermode/Applications/init_src/main.c
index
87eccde
..
1cdf98b
100644
(file)
--- 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);
goto lineError;
}
AddKTerminal(id, command);
- free(command);
}
else if(strcmp(cmdbuf, "stty") == 0 ) {
// stty <devpath> [78][NOE][012][bB]<baud> <command...>
}
else if(strcmp(cmdbuf, "stty") == 0 ) {
// stty <devpath> [78][NOE][012][bB]<baud> <command...>
@@
-444,7
+443,7
@@
int SpawnSTerm(tInitProgram *Program)
int out = _SysOpen(Program->TypeInfo.STerm.Path, OPENFLAG_WRITE);
if(in == -1 || out == -1 ) {
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;
}
return -1;
}
UCC
git Repository :: git.ucc.asn.au