[Bf-committers] fix to #2117

Alexander Ewering blender at instinctive.de
Mon Jan 24 20:07:40 CET 2005

On Mon, 24 Jan 2005, Alexander Ewering wrote:

> No, it doesn't solve it, you still get a non-terminated string.

Looking again at the snprintf() manpage, I was wrong, and your
code does solve it, as snprintf always seems to null-terminate
even if the resulting string doesn't fit.

Still, the strncpys are funny.

| alexander ewering              instinctive mediaworks
| ae[@]instinctive[.]de   http://www[.]instinctive[.]de

More information about the Bf-committers mailing list