cryptfs: Fix format string
Test: None Change-Id: Id16acb4ed5e89e759b69ec2d2f2db54cc54f1959
This commit is contained in:
parent
026072f81b
commit
b610e77fd2
1 changed files with 1 additions and 1 deletions
|
@ -2685,7 +2685,7 @@ int cryptfs_setfield(const char *fieldname, const char *value)
|
|||
}
|
||||
|
||||
for (field_id = 1; field_id < num_entries; field_id++) {
|
||||
snprintf(temp_field, sizeof(temp_field), "%s_%d", fieldname, field_id);
|
||||
snprintf(temp_field, sizeof(temp_field), "%s_%u", fieldname, field_id);
|
||||
|
||||
if (persist_set_key(temp_field, value + field_id * (PROPERTY_VALUE_MAX - 1), encrypted)) {
|
||||
// fail to set key, should not happen as we have already checked the available space.
|
||||
|
|
Loading…
Reference in a new issue