Large memory allocation errors

Russ Allbery rra at
Thu Oct 28 03:38:29 UTC 1999

Historically, INN has always reported memory allocation failures
intentionally using the wrong format specifier for printf (%d instead of
%lu) so that particularly large allocations will show as negative,
presumably with the intent of flagging them more clearly as absurd.

I'm in the middle of that code right now, fixing prototypes and data
types, and I was wondering if we want to retain this behavior.  I
personally would rather just use the right specifier; I think that the
negative sign is more confusing than helpful.  But I don't have a
particularly strong opinion.

Russ Allbery (rra at         <URL:>

More information about the inn-workers mailing list