Re: snprintf

2001-11-29 Thread Marcus Brinkmann
On Wed, Nov 28, 2001 at 06:27:31PM -0800, James Morrison wrote: > This same code on GNU/Hurd with stdio sets limited[0] to '\0' > but does not touch any other characters. snprintf returns 5 > on GNU/Hurd as well. It's a bug in stdio. Please debug and fix it. Marcus -- `Rhubarb is no Egyptian

Re: snprintf

2001-11-29 Thread Andreas Schwab
James Morrison <[EMAIL PROTECTED]> writes: |> Hello, |> I've noticed that on GNU/Hurd snprintf doesn't work if |> the expanded template exceeds the size given. |> |> eg |> char limited[5]; |> snprintf(limited,5,"12345"); |> |> On GNU/Linux with libio snprintf sets limit