1
0
mirror of https://github.com/sgmarz/osblog.git synced 2024-11-23 18:06:20 +04:00

Fixed looping bug

This commit is contained in:
Stephen Marz 2019-10-09 20:36:39 -04:00
parent 99b98111a4
commit c4b824dfa7

View File

@ -89,7 +89,7 @@ pub fn kzmalloc(sz: usize) -> *mut u8 {
for i in 0..size {
unsafe {
(*ret) = 0;
(*ret.add(i)) = 0;
}
}
ret