Re: patch: remove snprintf() from xap_Frame.cpp

Subject: Re: patch: remove snprintf() from xap_Frame.cpp
From: Dom Lachowicz (
Date: Mon Mar 26 2001 - 21:28:36 CST

Only with much pain and displeasure do I apply this patch, though Kevin's
analysis of the situation is quite correct. sprintf bad, snprintf good but
not supported everywhere. We should really code up our own impl of this for
platforms that don't support it...


>From: Kevin Vajk <>
>To: <>
>Subject: patch: remove snprintf() from xap_Frame.cpp
>Date: Mon, 26 Mar 2001 18:33:34 -0800 (PST)
>I patched abi/src/af/xap/xp/xap_Frame.cpp to not use snprintf().
>I really hate removing bounds-checking (although in this case it's
>safe, if I understand what's going on). But, regretfully, snprintf()
>is not portable. Ancient versions of HP-UX don't have a prototype
>for it (although I think it's in libc), and there's a message from
>Sam last November indicating PPC BeOS doesn't have it, either.
>- Kevin Vajk
> <>
><< snprintf.patch >>

Get your FREE download of MSN Explorer at

This archive was generated by hypermail 2b25 : Mon Mar 26 2001 - 21:28:47 CST