From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078614710331.tru64-unix-managers.marc@archive.invalid> From: David Krinsky Date: Thu, 10 Jul 1997 18:43:53 +0000 To: tru64-unix-managers Subject: snprintf in libdb is useless. X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078614710331 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