summaryrefslogtreecommitdiffstats
path: root/source/lib
diff options
context:
space:
mode:
authorVance Lankhaar <vance@samba.org>2004-08-05 01:27:28 +0000
committerVance Lankhaar <vance@samba.org>2004-08-05 01:27:28 +0000
commitf42fe8f2e9dd78aae7b4ca9abbee8ad705d233db (patch)
tree2265c48c7b6857491f3c7ec661be1a0879bc5793 /source/lib
parentdd4d1714e749debad3fc494b565a8121d204bbdc (diff)
downloadsamba-f42fe8f2e9dd78aae7b4ca9abbee8ad705d233db.tar.gz
samba-f42fe8f2e9dd78aae7b4ca9abbee8ad705d233db.tar.xz
samba-f42fe8f2e9dd78aae7b4ca9abbee8ad705d233db.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
Diffstat (limited to 'source/lib')
-rw-r--r--source/lib/snprintf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/lib/snprintf.c b/source/lib/snprintf.c
index 79de3c0ca5d..633517def28 100644
--- a/source/lib/snprintf.c
+++ b/source/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