aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/commands/command.c
diff options
context:
space:
mode:
authorMarvin Borner2019-10-30 16:02:10 +0100
committerMarvin Borner2019-10-30 16:02:10 +0100
commit118898807865ba11f5d7754f6f0572a0403f8512 (patch)
tree0b69c881089d659ebb214c409b699cc06323ab3d /src/kernel/commands/command.c
parentfd4f0a11126a20e75d72f8f2e6d418598fd5f37d (diff)
Started implementation of initrd based vfs
Diffstat (limited to 'src/kernel/commands/command.c')
-rw-r--r--src/kernel/commands/command.c2
1 files changed, 1 insertions, 1 deletions
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) {