Merge "Make addAddress locale safe"

This commit is contained in:
Jean-Baptiste Queru
2012-08-29 12:19:03 -07:00
committed by android code review

View File

@@ -329,7 +329,7 @@ public class VpnService extends Service {
throw new IllegalArgumentException("Bad address");
}
mAddresses.append(String.format(" %s/%d", address.getHostAddress(), prefixLength));
mAddresses.append(' ' + address.getHostAddress() + '/' + prefixLength);
return this;
}