Some time last summer, there was mention on this list of the fact that
there is no snprintf in Digital Unix's libc. It was mentioned that this
function, useful for preventing buffer overruns, could be found and linked
in from libdb.so, and that it would likely be moved to libc in Digital Unix
4.2.
Please be advised that, so far as I can tell, the version of snprintf in
libdb is a wrapper to sprintf which completely ignores the length field and
blithely does a sprintf; it is thus useless.
Since this is use of snprintf is not to my knowledge officially supported,
I can hardly ask for a fix; however, it is definitely something to be
aware of, and it makes the need for a functional snprintf in libc much more
urgent.
David Krinsky
System Administrator
Harvard Computer Society
Received on Thu Jul 10 1997 - 20:55:11 NZST