Permalink
Browse files

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

…afe"

* commit '3f3ce8adc7a4fcb5ec23a317c8b5063b61ac15a2':
  Make SimpleSessionDescription locale safe
  • Loading branch information...
Jean-Baptiste Queru Android Git Automerger
Jean-Baptiste Queru authored and Android Git Automerger committed Sep 6, 2012
2 parents 657dba9 + 3f3ce8a commit f66603e109d439e3a537cd3804706609ce86970e
Showing with 2 additions and 1 deletion.
  1. +2 −1 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");

0 comments on commit f66603e

Please sign in to comment.