summaryrefslogtreecommitdiffstats
path: root/wifi
diff options
context:
space:
mode:
Diffstat (limited to 'wifi')
-rw-r--r--wifi/java/android/net/wifi/WifiSsid.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/wifi/java/android/net/wifi/WifiSsid.java b/wifi/java/android/net/wifi/WifiSsid.java
index 55e9b2d..c04fa1b 100644
--- a/wifi/java/android/net/wifi/WifiSsid.java
+++ b/wifi/java/android/net/wifi/WifiSsid.java
@@ -86,6 +86,11 @@ public class WifiSsid implements Parcelable {
switch (c) {
case '\\':
i++;
+ if (i >= asciiEncoded.length()) {
+ octets.write('\\');
+ break;
+ }
+
switch(asciiEncoded.charAt(i)) {
case '\\':
octets.write('\\');