diff options
author | Vance Lankhaar <vance@samba.org> | 2004-08-05 01:27:28 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:52:17 -0500 |
commit | e1df2acc04106a443884f39a5e03c63b220e5b1f (patch) | |
tree | 7149ace0ab276c073627a2ee96b68c31431f4c5b | |
parent | 603ac68a2ac1d2c5e7337b350a0b81187f13d816 (diff) | |
download | samba-e1df2acc04106a443884f39a5e03c63b220e5b1f.tar.gz samba-e1df2acc04106a443884f39a5e03c63b220e5b1f.tar.bz2 samba-e1df2acc04106a443884f39a5e03c63b220e5b1f.zip |
r1656: Patch from James Peach:
> 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
(This used to be commit 1a33999cf073ee18f846678357832ec7866bb467)
-rw-r--r-- | source3/lib/snprintf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/lib/snprintf.c b/source3/lib/snprintf.c index 79de3c0ca5..633517def2 100644 --- a/source3/lib/snprintf.c +++ b/source3/lib/snprintf.c @@ -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 |