Merge pull request #424 from cglosner/codeql-fixes
libknet/tests: fix potential overflow with sprintf