Skip to content

Commit

Permalink
aligned_alloc, parameters order
Browse files Browse the repository at this point in the history
  • Loading branch information
DrZlo13 committed Apr 9, 2024
1 parent 0d3a717 commit f1e6de7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion furi/core/memmgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ char* strdup(const char* s) {
return y;
}

void* aligned_alloc(size_t size, size_t alignment) {
void* aligned_alloc(size_t alignment, size_t size) {
return pvPortAllocAligned(size, alignment);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/flipper_application/elf/elf_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ static bool elf_load_section_data(ELFFile* elf, ELFSection* section, Elf32_Shdr*
return true;
}

section->data = aligned_alloc(section_header->sh_size, section_header->sh_addralign);
section->data = aligned_alloc(section_header->sh_addralign, section_header->sh_size);
section->size = section_header->sh_size;

if(section_header->sh_type == SHT_NOBITS) {
Expand Down

0 comments on commit f1e6de7

Please sign in to comment.