]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r1656: Patch from James Peach:
authorVance Lankhaar <vance@samba.org>
Thu, 5 Aug 2004 01:27:28 +0000 (01:27 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:52:17 +0000 (10:52 -0500)
> This patch is (probably) needed for all systems that don't have a
> C99/UNIX98 compliant vsnprintf by default. The builtin sm_*printf
> were no being called, causing things like talloc_init to fail, with
> predictable results.

The should fix 6 (solaris/hpux/irix) builds on the build farm.

Vance

source/lib/snprintf.c

index 79de3c0ca5d86072a7fef2e96c0d54bd64336e3f..633517def2866e2d2cbf6e1d04d46f247294bb7b 100644 (file)
@@ -821,6 +821,7 @@ static void dopr_outch(char *buffer, size_t *currlen, size_t maxlen, char c)
 {
        return dopr(str, count, fmt, args);
 }
+#define vsnprintf smb_vsnprintf
 #endif
 
 /* yes this really must be a ||. Don't muck with this (tridge)
@@ -840,6 +841,7 @@ int smb_snprintf(char *str,size_t count,const char *fmt,...)
        va_end(ap);
        return ret;
 }
+#define snprintf smb_snprintf
 #endif
 
 #endif