Actually I was lying a bit in the documentation (going to fix it soon). ```sprintf``` will auto add a null terminator.