gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Good bits from Marcin's patch3


From: Pawel Kot
Subject: Re: Good bits from Marcin's patch3
Date: Wed, 03 Apr 2002 14:50:15 +0200

>>> address@hidden 3 April 2002 13:09:26 >>>
> On Wed, Apr 03, 2002 at 01:14:13PM +0300, leos wrote:
> > > [What is semantics of snprintf? Is it possible that result is not
> > > 0-terminated after snprintf?
> > 
> > The man says: " The buffer is terminated  with  the null byte only if 
> > space is available." (about the output buffer).
> 
> What kind of *nix are you using? Maybe we should check for _broken_ snprintf
> implementation too...

Definitely. I think old implementations of snprintf didn't put \0 at the end of
the string.

pkot





reply via email to

[Prev in Thread] Current Thread [Next in Thread]