r17667: Merge snprintf fixes from tridge (Samba4).
authorJeremy Allison <jra@samba.org>
Mon, 21 Aug 2006 17:58:41 +0000 (17:58 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:38:44 +0000 (11:38 -0500)
commit64fd96666f391101c41b7a564fd20ab2e93e3923
treedb9e1227e5180cba8d5d4afef506c4bd13ab235e
parentdd0069cfcabb25dc7dc0d336696a5f2580abb5a1
r17667: Merge snprintf fixes from tridge (Samba4).
Jeremy.

----------
several replacement snprintf() fixes.

1) when running the testsuite, actually test against the system
   sprintf(), not against ourselves (doh!)

2) fix the buffer termination to terminate buf2 as well

3) fix handling of %llu, and add a simple test

This fixes a bug with password expiry on solaris
----------
source/lib/snprintf.c