kristapsdz / kcgi

minimal CGI and FastCGI library for C/C++
https://kristaps.bsd.lv/kcgi
ISC License
275 stars 40 forks source link

Check for snprintf(3) failure. #93

Closed cvengler closed 3 years ago

cvengler commented 3 years ago

The function must always return a 3. If we get a different number or even a negative one indicating an unlikely but possible error in the printf-engine we will probably get into trouble.