Skip to content

Commit fb3ec44

Browse files
Jean-Baptiste QueruAndroid Git Automerger
authored andcommitted
am f66603e: am 3f3ce8a: am bf3e62b: Merge "Make SimpleSessionDescription locale safe"
* commit 'f66603e109d439e3a537cd3804706609ce86970e': Make SimpleSessionDescription locale safe
2 parents 49a7387 + f66603e commit fb3ec44

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

voip/java/android/net/sip/SimpleSessionDescription.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import java.util.ArrayList;
2020
import java.util.Arrays;
21+
import java.util.Locale;
2122

2223
/**
2324
* An object used to manipulate messages of Session Description Protocol (SDP).
@@ -66,7 +67,7 @@ public class SimpleSessionDescription {
6667
public SimpleSessionDescription(long sessionId, String address) {
6768
address = (address.indexOf(':') < 0 ? "IN IP4 " : "IN IP6 ") + address;
6869
mFields.parse("v=0");
69-
mFields.parse(String.format("o=- %d %d %s", sessionId,
70+
mFields.parse(String.format(Locale.US, "o=- %d %d %s", sessionId,
7071
System.currentTimeMillis(), address));
7172
mFields.parse("s=-");
7273
mFields.parse("t=0 0");

0 commit comments

Comments
 (0)