am fd41feee: Merge "Fix wrap property creation when truncating." into lmp-mr1-dev

* commit 'fd41feee6b909670010da79a0800c1aa2ce44255':
  Fix wrap property creation when truncating.
This commit is contained in:
Christopher Ferris
2015-01-30 02:33:34 +00:00
committed by Android Git Automerger

View File

@@ -842,7 +842,12 @@ class ZygoteConnection {
if (args.niceName != null) {
String property = "wrap." + args.niceName;
if (property.length() > 31) {
property = property.substring(0, 31);
// Avoid creating an illegal property name when truncating.
if (property.charAt(30) != '.') {
property = property.substring(0, 31);
} else {
property = property.substring(0, 30);
}
}
args.invokeWith = SystemProperties.get(property);
if (args.invokeWith != null && args.invokeWith.length() == 0) {