diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-04-08 10:19:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-08 10:19:56 +0200 |
| commit | 29828ef52df7a51e22057b4557b8d9a3d5550839 (patch) | |
| tree | 8f809bcf67e1c77beae47bce71877bd546db5146 /dev/kernel/src/FS/NeFS.cc | |
| parent | b18c5e09961d8bc0b2368176d9fb23789afebb87 (diff) | |
| parent | 1f6dd86d548ec8194c79bd9e2a8b27991061cd9e (diff) | |
Merge pull request #12 from amlel-el-mahrouss/dev
pr/ahci: generic driver improvements.
Diffstat (limited to 'dev/kernel/src/FS/NeFS.cc')
| -rw-r--r-- | dev/kernel/src/FS/NeFS.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/dev/kernel/src/FS/NeFS.cc b/dev/kernel/src/FS/NeFS.cc index 90c5995a..7bc02b39 100644 --- a/dev/kernel/src/FS/NeFS.cc +++ b/dev/kernel/src/FS/NeFS.cc @@ -505,18 +505,17 @@ bool NeFileSystemParser::Format(_Input _Output DriveTrait* drive, _Input const L constexpr auto kFsName = "NeFS"; constexpr auto kBlockName = "NeKernel:"; - rt_copy_memory(reinterpret_cast<VoidPtr>(const_cast<Char*>(kFsName)), epm_boot->Fs, rt_string_len(kFsName)); - epm_boot->FsVersion = kNeFSVersionInteger; epm_boot->LbaStart = start; epm_boot->SectorSz = kNeFSSectorSz; + rt_copy_memory(reinterpret_cast<VoidPtr>(const_cast<Char*>(kFsName)), epm_boot->Fs, rt_string_len(kFsName)); rt_copy_memory(reinterpret_cast<VoidPtr>(const_cast<Char*>(kBlockName)), epm_boot->Name, rt_string_len(kBlockName)); rt_copy_memory(reinterpret_cast<VoidPtr>(const_cast<Char*>(kEPMMagic)), epm_boot->Magic, rt_string_len(kEPMMagic)); Lba outEpmLba = kEPMBootBlockLba; - Char buf[kNeFSSectorSz]; + Char buf[kNeFSSectorSz] = {0}; Lba prevStart = 0; SizeT cnt = 0; |
