OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Re: sendmail ;o)
From: Daniel Jacobowitz (drowFALSE.ORG)
Date: Wed Jul 12 2000 - 23:57:04 CDT


On Wed, Jul 12, 2000 at 11:54:01AM +0200, Slawek wrote:
> Well it's about the same like in finger - even "better" ;) .. snprintf does
> not null terminate :)

So, I've been guilty of this a time or two myself, so I felt I should
correct this. snprintf() in most cases DOES null terminate - there are
probably some platforms where it does not, but it usually does.

You may be thinking of strncpy(), which does not.

Dan

/--------------------------------\ /--------------------------------\
| Daniel Jacobowitz |__| SCS Class of 2002 |
| Debian GNU/Linux Developer __ Carnegie Mellon University |
| dandebian.org | | dmj+andrew.cmu.edu |
\--------------------------------/ \--------------------------------/