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
Implementing telnet server, fixes everywhere
[tpg/acess2.git]
/
Kernel
/
binary.c
diff --git
a/Kernel/binary.c
b/Kernel/binary.c
index
b776fed
..
5213bf2
100644
(file)
--- a/
Kernel/binary.c
+++ b/
Kernel/binary.c
@@
-178,7
+178,7
@@
int Proc_SysSpawn(const char *Binary, const char **ArgV, const char **EnvP, int
// --- Save File, ArgV and EnvP
size = Binary_int_CacheArgs( &Binary, &ArgV, &EnvP, NULL );
// --- Save File, ArgV and EnvP
size = Binary_int_CacheArgs( &Binary, &ArgV, &EnvP, NULL );
- cachebuf =
alloca
( size );
+ cachebuf =
malloc
( size );
Binary_int_CacheArgs( &Binary, &ArgV, &EnvP, cachebuf );
// Cache the VFS handles
Binary_int_CacheArgs( &Binary, &ArgV, &EnvP, cachebuf );
// Cache the VFS handles
@@
-190,6
+190,7
@@
int Proc_SysSpawn(const char *Binary, const char **ArgV, const char **EnvP, int
{
VFS_RestoreHandles(nFD, handles);
VFS_FreeSavedHandles(nFD, handles);
{
VFS_RestoreHandles(nFD, handles);
VFS_FreeSavedHandles(nFD, handles);
+ // Frees cachebuf
Proc_Execve(Binary, ArgV, EnvP, size);
for(;;);
}
Proc_Execve(Binary, ArgV, EnvP, size);
for(;;);
}
UCC
git Repository :: git.ucc.asn.au