EgeBalci / Keylogger

Simple C++ Keylogger...
137 stars 89 forks source link

Updated README and made source code more efficient #4

Open otuva opened 3 years ago

otuva commented 3 years ago

The 'KEY' variable was declared 2 times. and condition for the 'KEY' in for loop was out of range.

The for loop is infinite because a char goes from -128 to +127, and thus never reaches 190. And using int inside for loop is inefficient. I put unsigned before char to make range 0 till 255 so condition can be viable.