This comment originally referred, not to a va_copy() call, but to the
use of &c with vsnprintf() rather than passing in NULL with a length of
zero.
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
struct talloc_chunk *tc = NULL;
char buf[1024];
- /* this call looks strange, but it makes it work on older solaris boxes */
va_copy(ap2, ap);
vlen = vsnprintf(buf, sizeof(buf), fmt, ap2);
va_end(ap2);
char c;
va_copy(ap2, ap);
+ /* this call looks strange, but it makes it work on older solaris boxes */
alen = vsnprintf(&c, 1, fmt, ap2);
va_end(ap2);