apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: [PATCH] fixes for apr_vformatter and apr_snprintf
Date Thu, 11 Jul 2002 16:35:16 GMT
>
>OK, so if I make a fix to apr_psprintf to fix it, we can remove the
>kludge in vformatter?
>
>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. 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 :)
-- 
===========================================================================
   Jim Jagielski   [|]   jim@jaguNET.com   [|]   http://www.jaguNET.com/
      "A society that will trade a little liberty for a little order
             will lose both and deserve neither" - T.Jefferson

Mime
View raw message