test: Replace remaining sprintf with snprintf
commit19cafc6239abd14f2b9c3d883dc7df0472cac52b
authorWladimir J. van der Laan <laanwj@gmail.com>
Sun, 26 Feb 2017 20:08:26 +0000 (26 21:08 +0100)
committerWladimir J. van der Laan <laanwj@gmail.com>
Mon, 27 Feb 2017 09:03:20 +0000 (27 10:03 +0100)
tree533c6b65eb58d792750f0daf49b751924a0b1761
parent0a177148e7dbac2e88ddc142f0ef10c6a4de8ec8
test: Replace remaining sprintf with snprintf

Use of `sprintf` is seen as a red flag as many of its uses are insecure.
OpenBSD warns about it while compiling, and some modern platforms, e.g.
[cloudlibc from cloudabi](https://github.com/NuxiNL/cloudlibc) don't
even provide it anymore.

Although our uses of these functions are secure, it can't hurt to
replace them anyway. There are only 3 occurences left, all in the
tests.
src/test/dbwrapper_tests.cpp