Use proper alignmend buffer for reading/writing

This commit is contained in:
Maschell
2022-02-14 20:23:27 +01:00
parent e57a7eedb0
commit a6ced98864
7 changed files with 48 additions and 39 deletions

View File

@@ -1,4 +1,5 @@
#include "utils/utils.h"
#include <cstdarg>
#include <cstdio>
#include <fs/CFile.hpp>
@@ -156,7 +157,7 @@ int32_t CFile::seek(long int offset, int32_t origin) {
}
int32_t CFile::fwrite(const char *format, ...) {
char tmp[512];
ALIGN_DATA_0x40 char tmp[512];
tmp[0] = 0;
int32_t result = -1;