From 4c88a3eac55bf3e6a995900424c20eece95b3ca4 Mon Sep 17 00:00:00 2001 From: Stefan Kremser Date: Tue, 6 Jun 2017 10:55:57 +0200 Subject: [PATCH] Zero width char in SSID clone --- esp8266_deauther/SSIDList.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/esp8266_deauther/SSIDList.cpp b/esp8266_deauther/SSIDList.cpp index 077b296..588fb73 100644 --- a/esp8266_deauther/SSIDList.cpp +++ b/esp8266_deauther/SSIDList.cpp @@ -39,10 +39,12 @@ void SSIDList::addClone(String name, int num) { for (int c = 0; c < SSIDListLength && c < num; c++) { _apName = name; - if (c < _restSSIDLen) for (int d = 0; d < _restSSIDLen - c; d++) _apName += " "; //e.g. "SAMPLEAP " - else if (c < _restSSIDLen * 2) { - _apName = " " + _apName; - for (int d = 0; d < (_restSSIDLen - 1) - c / 2; d++) _apName += " "; //e.g. " SAMPLEAP " + if (c < _restSSIDLen){ + for (int d = 0; d < _restSSIDLen - c; d++) _apName += " "; //e.g. "SAMPLEAP " + } else if (c < _restSSIDLen * 2) { + //_apName = " " + _apName; + _apName = "\u200B"+_apName; + for (int d = 0; d < (_restSSIDLen - 3) - c / 2; d++) _apName += " "; //e.g. "SAMPLEAP " (zero widtdh char at the beginning) } else if (c < _restSSIDLen * 3) { _apName = "." + _apName; for (int d = 0; d < (_restSSIDLen - 1) - c / 3; d++) _apName += " "; //e.g. ".SAMPLEAP "