Problems post sprintf->snprintf conversion

Alex Kiernan alexk at demon.net
Wed Aug 21 07:53:38 UTC 2002


On Wed, 2002-08-21 at 06:07, Alex Kiernan wrote:
> 
> The floating point formatting in the snprintf replacement breaks when
> you try and print something larger than MAXINT, quietly, in a hard to
> debug way :( Given INN uses floats to get around just this problem,
> this is really, really scary.

[...]

> I'll add in some code to use fconvert if we can find it in configure,
> if not I'm tempted to give up during configure.
> 

Only fconvert is Solaris specific (I was thinking of fcvt really, but
its so long since I used any of those functions).

I've added a kludge around instead (/long/LLONG/) so we have more
digits, but I don't like it :(

-- 
Alex Kiernan, Principal Engineer, Development, THUS plc


More information about the inn-workers mailing list