kernc / logkeys

:memo: :keyboard: A GNU/Linux keylogger that works!
Other
765 stars 253 forks source link

getopt API uses int as return value, bugfix. #158

Closed rsateler closed 8 years ago

rsateler commented 8 years ago

Changed type of variable that gets the return value from getopt_long from char to int. The char type produced a bug when compiled to (at least one type of) arm processor, where char was defined as an unsigned int and the return value of -1 was converted as 255. This bug resulted in always returning showing the usage and exit with error.

kernc commented 8 years ago

Yikes, who could have written that! Thanks!