Fix issue LemonBoy/bar#25
Merge pull request #26 from boblehest/master

Fix issue LemonBoy/bar#25
Take BAR_OFFSET into account. Fixes #29.
utf-8 fixes! Replaced wchar_t with uint16_t. -O2 doesn't increase the binary size that much so let's go for it.
check return value of fgets and exit main loop if EOF is received
styling change: remove uneeded parentheses around dereferenced pointer
Merge pull request #35 from freestyl3r/master

Silence the warning about not checking fgets return value
Merge remote-tracking branch 'upstream/master'

* upstream/master:
  styling change: remove uneeded parentheses around dereferenced pointer
  check return value of fgets and exit main loop if EOF is received
  utf-8 fixes! Replaced wchar_t with uint16_t. -O2 doesn't increase the binary size that much so let's go for it.
  Take BAR_OFFSET into account. Fixes #29.
  Fix issue LemonBoy/bar#25