Home
last modified time | relevance | path

Searched refs:trimmed_len (Results 1 – 2 of 2) sorted by relevance

/aosp_15_r20/system/extras/boot_control_copy/
H A Dbootinfo.cpp78 size_t trimmed_len, name_len; in boot_info_open_partition() local
83 trimmed_len = end_slash - record->blk_device.c_str() + 1; in boot_info_open_partition()
85 path = static_cast<char*>(calloc(trimmed_len + name_len + 1, 1)); in boot_info_open_partition()
86 strncpy(path, record->blk_device.c_str(), trimmed_len); in boot_info_open_partition()
87 strncpy(path + trimmed_len, name, name_len); in boot_info_open_partition()
/aosp_15_r20/external/avb/libavb_user/
H A Davb_ops_user.cpp103 size_t trimmed_len, name_len; in open_partition() local
108 trimmed_len = end_slash - record->blk_device.c_str() + 1; in open_partition()
110 path = static_cast<char*>(calloc(trimmed_len + name_len + 1, 1)); in open_partition()
111 strncpy(path, record->blk_device.c_str(), trimmed_len); in open_partition()
112 strncpy(path + trimmed_len, name, name_len); in open_partition()