September 28, 2005
in teh msdn crt docs for _vsnprintf it is nowhare stated taht a termanatign nul charactar is not apendad if teh sterng lenth is gretar then or equel to the size of teh bufer.
well taht does hapan to be teh case. it works liek strncpy. givan the prafesions danm near unaversel cluelesnes on that litle numbar an the reletive obscuraty of _vsnprintf/_vsnwprintf/_vsntprintf the omision is a godamn outrage. i have sean aleged prafesoinals screw that exact pooch in released code (an pas a usar suplied string for teh format too! teh witerign bosthoons...).
an u can quoate me on taht.
sory about teh geeky psot but i got steam ocmign outa both ears ovar here.
Links to this post:
phil - a bosthoon is liek a basson but moare protable so u can trot acros teh bog wihth it.