It's ironic, because this snprintf.c is only used on OSes with no native
snprintf(), but they use a function which is likely not to be there on some
of those same OSes. tmpfile(), on the other hand, is portable -- it comes
from <stdio.h>, so this patch should be incorporated into nmh 0.25 (whoever
ends up doing that), I think.
The reason that mkstemp is used rather than tmpfile, is that many
systems have a bad race condition in tmpfile. At least that's what
I was told (I got the code from the bugtrac's mailing list).
--
Richard Coleman
coleman(_at_)math(_dot_)gatech(_dot_)edu