diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-11-13 14:07:11 +0100 |
---|---|---|
committer | Bjoern Jacke <bj@sernet.de> | 2012-11-14 19:41:14 +0100 |
commit | a15da3625850d97b3da1b02308c870f820007c52 (patch) | |
tree | 92c12b6fbae709a72c81fee2a484df7780b5dd09 /lib/replace/replace.c | |
parent | a53caea7a27c8616cabfc2e5bdf91a90e35891d5 (diff) | |
download | samba-a15da3625850d97b3da1b02308c870f820007c52.tar.gz samba-a15da3625850d97b3da1b02308c870f820007c52.tar.bz2 samba-a15da3625850d97b3da1b02308c870f820007c52.zip |
lib/replace: replace all *printf function if we replace snprintf (bug #9390)
This fixes segfaults in log level = 10 on Solaris.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Björn Jacke <bj@sernet.de>
Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Wed Nov 14 19:41:14 CET 2012 on sn-devel-104
Diffstat (limited to 'lib/replace/replace.c')
-rw-r--r-- | lib/replace/replace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/replace/replace.c b/lib/replace/replace.c index e461471e55..7ee5f4bc1e 100644 --- a/lib/replace/replace.c +++ b/lib/replace/replace.c @@ -741,7 +741,7 @@ void *rep_memmem(const void *haystack, size_t haystacklen, } #endif -#ifndef HAVE_VDPRINTF +#if !defined(HAVE_VDPRINTF) || !defined(HAVE_C99_VSNPRINTF) int rep_vdprintf(int fd, const char *format, va_list ap) { char *s = NULL; @@ -758,7 +758,7 @@ int rep_vdprintf(int fd, const char *format, va_list ap) } #endif -#ifndef HAVE_DPRINTF +#if !defined(HAVE_DPRINTF) || !defined(HAVE_C99_VSNPRINTF) int rep_dprintf(int fd, const char *format, ...) { int ret; |