Fix parsing of the AP name if the character is korean language. 69/172869/1
authorNiraj Kumar Goit <niraj.g@samsung.com>
Fri, 16 Mar 2018 10:26:51 +0000 (15:56 +0530)
committerNiraj Kumar Goit <niraj.g@samsung.com>
Fri, 16 Mar 2018 10:26:51 +0000 (15:56 +0530)
Change-Id: I67e365cb7a500ba7919611d8e48ba27d9add2549
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
src/wifi-netlink-scan.c

index d66f22a..5d935c2 100755 (executable)
@@ -441,7 +441,7 @@ static void __netconfig_found_ap(unsigned char *bss_element, int length, char *s
                                else if (data[i] == ' ' && (i != 0 && i != len -1))
                                        snprintf(&str[i], 2, "%c", ' ');
                                else
-                                       snprintf(&str[i], 3, "%.2x", data[i]);
+                                       snprintf(&str[i], 2, "%c", data[i]);
                        }
                        break;
                }