[Kaffe] could this buffer overflow?

Patrick Tullmann tullmann at cs.utah.edu
Sat Feb 6 20:26:18 PST 1999


Raffaele wrote:
>     snprintf is, unfortunately, Windows ONLY :(

Huh?  It exists on FreeBSD (v2.x) and Linux (libc5), too....  and that
covers all three operating systems. ;)

For those unfortuate operating systems without snprintf, defining it
in terms of sprintf() (and ignoring the 'n') might be an option.  Or,
just steal an snprintf() from some GPL'd library and use that on
stdlib-poor systems.

-Pat


More information about the kaffe mailing list