diff options
Diffstat (limited to 'syscall')
-rw-r--r-- | syscall/invoke-untyped.c | 2 | ||||
-rw-r--r-- | syscall/invoke_objdir.c | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/syscall/invoke-untyped.c b/syscall/invoke-untyped.c index ae9482f..1168d77 100644 --- a/syscall/invoke-untyped.c +++ b/syscall/invoke-untyped.c @@ -70,7 +70,7 @@ s_handle_invoke_untyped_split( }; size_t *split = ko_entry_data(dest_entry); -*untyped -= dest_bytes; + *untyped -= dest_bytes; *split = dest_bytes; #ifdef DBG_SYSCALL diff --git a/syscall/invoke_objdir.c b/syscall/invoke_objdir.c index 8f0a923..86dc40c 100644 --- a/syscall/invoke_objdir.c +++ b/syscall/invoke_objdir.c @@ -36,9 +36,6 @@ s_handle_invoke_objdir_lastmemb( size_t payload_at ) { - path_byte_t *dest; - SYSCALL_PAYLOAD_TAKEP(payload, payload_at, dest, path_byte_t); - uint8_t lastfull = 0; for(int i = 1; i < 256; i++) { if(target_dir->entries[i].type != KO_NONE) lastfull = i; @@ -47,7 +44,7 @@ s_handle_invoke_objdir_lastmemb( #ifdef DBG_SYSCALL klogf("%i\n", lastfull); #endif - *dest = lastfull; + payload[0] = lastfull; return 0; } |