Skip to content

Commit 7fecf5f

Browse files
Jean-Baptiste Queruandroid code review
authored andcommitted
Merge "Make addAddress locale safe"
2 parents 4ba4cae + 3cd42df commit 7fecf5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/java/android/net/VpnService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ public Builder addAddress(InetAddress address, int prefixLength) {
329329
throw new IllegalArgumentException("Bad address");
330330
}
331331

332-
mAddresses.append(String.format(" %s/%d", address.getHostAddress(), prefixLength));
332+
mAddresses.append(' ' + address.getHostAddress() + '/' + prefixLength);
333333
return this;
334334
}
335335

0 commit comments

Comments
 (0)