mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-31 15:06:45 -08:00
Move part of libbase to Rust
This commit is contained in:
@@ -219,7 +219,7 @@ void byte_stream::resize(size_t new_pos, bool zero) {
|
||||
resize = true;
|
||||
}
|
||||
if (resize) {
|
||||
_buf = (uint8_t *) xrealloc(_buf, _cap);
|
||||
_buf = (uint8_t *) realloc(_buf, _cap);
|
||||
if (zero)
|
||||
memset(_buf + old_cap, 0, _cap - old_cap);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user