apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nuutti Kotivuori <na...@iki.fi>
Subject Re: [PATCH] fixes for apr_vformatter and apr_snprintf
Date Thu, 11 Jul 2002 20:07:54 GMT
Jim Jagielski wrote:
>> After that apr_snprintf returns len-1 if the data just fit and len
>> if it got truncated. Is this what is wanted?
> It would appear so... Certainly not being able to tell truncation
> from "it just fit" is non-ideal.

Well yes. But now that we have really decided on the behaviour,
someone should change the documentatoin.

> The "kludge" is the (sp >= beg)...INS_CHAR...  stuff right before we
> return cc though, right? Want to make sure that's the code you're
> referring to :)

Yes, the unnecessary flushing at the end.

But, see my other mail - me and Sander basically split the handling of
this issue.

-- Naked

View raw message