Skip to content
Browse files

am bf3e62b: Merge "Make SimpleSessionDescription locale safe"

* commit 'bf3e62b8913fc2fb88d6bb454a6491424cbd40c5':
  Make SimpleSessionDescription locale safe
  • Loading branch information...
2 parents 4aa83ec + bf3e62b commit 3f3ce8adc7a4fcb5ec23a317c8b5063b61ac15a2 Jean-Baptiste Queru committed with Android Git Automerger Sep 6, 2012
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");

0 comments on commit 3f3ce8a

Please sign in to comment.
Something went wrong with that request. Please try again.