Skip to content

Commit

Permalink
Merge pull request #21 from waterlgndx/nullCharacterWin10
Browse files Browse the repository at this point in the history
simple fix to ignore '\0'
  • Loading branch information
teschnei authored Jul 23, 2018
2 parents d5cf93a + 588c9a2 commit a3c75a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xiloader/network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,9 @@ namespace xiloader
char ch;
while ((ch = static_cast<char>(_getch())) != '\r')
{
if (ch == '\b')
if (ch == '\0')
continue;
else if (ch == '\b')
{
if (g_Password.size())
{
Expand Down

0 comments on commit a3c75a9

Please sign in to comment.