Merge "setprop: check if not setprop value but setprop name starts with "ro."" into main
This commit is contained in:
commit
ff086da560
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ extern "C" int setprop_main(int argc, char** argv) {
|
|||
}
|
||||
}
|
||||
|
||||
if (value.size() >= PROP_VALUE_MAX && !StartsWith(value, "ro.")) {
|
||||
if (value.size() >= PROP_VALUE_MAX && !StartsWith(name, "ro.")) {
|
||||
std::cerr << "Value '" << value << "' is too long, " << value.size()
|
||||
<< " bytes vs a max of " << PROP_VALUE_MAX << std::endl;
|
||||
return EXIT_FAILURE;
|
||||
|
|
Loading…
Reference in a new issue