Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSID length of 32 not working. #15

Open
neilbrookins opened this issue Jun 10, 2018 · 2 comments
Open

SSID length of 32 not working. #15

neilbrookins opened this issue Jun 10, 2018 · 2 comments

Comments

@neilbrookins
Copy link

When I edit the list of SSID and I make a name exactly 32 characters long, plus one more for the \n at the end, the resulting SSID shown in the WiFi client is truncated - the last one character is not displayed.
Here is an example SSID: "12345678901234567890123456789012\n"

I searched the source code and found that I was able to fix this issue by changing this line:
Original code:
} while (tmp != '\n' && j < 32 && i + j < ssidsLen);

New code:
} while (tmp != '\n' && j < 33 && i + j < ssidsLen);

@spacehuhn
Copy link
Owner

Thanks!
You're absolutely right. I will update the source code

@atom-smasher
Copy link

Looks like the "Original code" is correct, as of now…?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants