Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

am 3f3ce8a: am bf3e62b: Merge "Make SimpleSessionDescription locale s…

…afe"

* commit '3f3ce8adc7a4fcb5ec23a317c8b5063b61ac15a2':
  Make SimpleSessionDescription locale safe
  • Loading branch information...
commit f66603e109d439e3a537cd3804706609ce86970e 2 parents 657dba9 + 3f3ce8a
Jean-Baptiste Queru authored Android Git Automerger committed
Showing with 2 additions and 1 deletion.
  1. +2 −1  voip/java/android/net/sip/SimpleSessionDescription.java
View
3  voip/java/android/net/sip/SimpleSessionDescription.java
@@ -18,6 +18,7 @@
import java.util.ArrayList;
import java.util.Arrays;
+import java.util.Locale;
/**
* An object used to manipulate messages of Session Description Protocol (SDP).
@@ -66,7 +67,7 @@
public SimpleSessionDescription(long sessionId, String address) {
address = (address.indexOf(':') < 0 ? "IN IP4 " : "IN IP6 ") + address;
mFields.parse("v=0");
- mFields.parse(String.format("o=- %d %d %s", sessionId,
+ mFields.parse(String.format(Locale.US, "o=- %d %d %s", sessionId,
System.currentTimeMillis(), address));
mFields.parse("s=-");
mFields.parse("t=0 0");
Please sign in to comment.
Something went wrong with that request. Please try again.