diff options
author | Matthew Sotoudeh <matthew@masot.net> | 2024-05-16 02:33:55 -0700 |
---|---|---|
committer | Matthew Sotoudeh <matthew@masot.net> | 2024-05-16 02:33:55 -0700 |
commit | a94a5a367dd1c6420221d42637e3a6316b18d49e (patch) | |
tree | 0c22033358466c1ebe8b0306edc11cb492494dce | |
parent | 2623dbaf1b8653c6ad49fa9fbcf99c5039086eb6 (diff) |
simplify further
-rw-r--r-- | magic_buddy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/magic_buddy.c b/magic_buddy.c index 1ebd25c..a4874fe 100644 --- a/magic_buddy.c +++ b/magic_buddy.c @@ -38,7 +38,7 @@ void init_buddy(uint8_t *base, size_t size, AVAIL[logsize] = (struct free_list *)base; AVAIL[logsize]->next = 0; AVAIL[logsize]->pprev = &(AVAIL[logsize]); - memcpy(&MAGIC, magic, sizeof(MAGIC)); + memcpy(MAGIC, magic, sizeof(MAGIC)); } static struct free_list *buddy_of(struct free_list *block, size_t logsize) { |