Hide Forgot
"The trailing null byte won't be added to str, if the string is truncated." claim in man 3 snprintf (seen on F14 up to latest f16 man pages in mock buildroot) is wrong, it is not what glibc snprintf implements nor what man 3p snprintf says. snprintf terminates the string with a null byte always, unless the size is zero (then it of course doesn't write anything).
Thanks, resolves in man-pages-3.32-11.fc16 changed to The trailing null byte is added to str, unless size is zero.