From 2e8b474d4219e7faaac3823e73c8d528c2698a37 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Thu, 14 Mar 2024 13:09:59 +0100 Subject: random changes made --- kernel/libc/exit/assert.c | 1 + kernel/libc/string/copy.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'kernel/libc') diff --git a/kernel/libc/exit/assert.c b/kernel/libc/exit/assert.c index 47c0704..89aa863 100644 --- a/kernel/libc/exit/assert.c +++ b/kernel/libc/exit/assert.c @@ -8,4 +8,5 @@ __attribute__((__noreturn__)) void aFailed(char *f, int l) { kprintf("%s : %d\n", f, l); dump_backtrace(10); halt(); + kprintf("after halt?\n"); } diff --git a/kernel/libc/string/copy.c b/kernel/libc/string/copy.c index 166924b..11cd664 100644 --- a/kernel/libc/string/copy.c +++ b/kernel/libc/string/copy.c @@ -14,7 +14,7 @@ char *copy_and_allocate_string(const char *s) { char *copy_and_allocate_user_string(const char *s) { size_t len; - if (!is_valid_user_c_string(s, &len)) { + if (!mmu_is_valid_user_c_string(s, &len)) { return NULL; } size_t real_len = strlen(s); -- cgit v1.2.3