lint: limit maximum length of input via scanf
Merge pull request #1687 from N8Fear/invalidscanf

lint: limit maximum length of input via scanf
tests: run cppcheck for PR in Travis

Failures are ignored for now.
Merge pull request #1432 from LudwigOrtmann/cppcheck

tests: enable cppcheck for PR in travis