mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-14 12:52:05 +00:00
Improve byte_data const correctness
This commit is contained in:
@@ -137,8 +137,8 @@ static void pb_get_prop(prop_cb *prop_cb) {
|
||||
PersistentProperties props{};
|
||||
props.properties.funcs.decode = prop_decode;
|
||||
props.properties.arg = prop_cb;
|
||||
auto m = mmap_data(PERSIST_PROP);
|
||||
pb_istream_t stream = pb_istream_from_buffer(m.buf, m.sz);
|
||||
mmap_data m(PERSIST_PROP);
|
||||
pb_istream_t stream = pb_istream_from_buffer(m.buf(), m.sz());
|
||||
pb_decode(&stream, &PersistentProperties_msg, &props);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user