From 118898807865ba11f5d7754f6f0572a0403f8512 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 30 Oct 2019 16:02:10 +0100 Subject: Started implementation of initrd based vfs --- src/kernel/commands/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kernel/commands/command.c') diff --git a/src/kernel/commands/command.c b/src/kernel/commands/command.c index 2334219..1118b29 100644 --- a/src/kernel/commands/command.c +++ b/src/kernel/commands/command.c @@ -8,7 +8,7 @@ int32_t starts_with(const char *a, const char *b) { size_t length_pre = strlen(b); size_t length_main = strlen(a); - return length_main < length_pre ? 0 : memory_compare(b, a, length_pre) == 0; + return length_main < length_pre ? 0 : memcmp(b, a, length_pre) == 0; } void exec_command(char *command) { -- cgit v1.2.3