From a15da3625850d97b3da1b02308c870f820007c52 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 13 Nov 2012 14:07:11 +0100 Subject: lib/replace: replace all *printf function if we replace snprintf (bug #9390) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes segfaults in log level = 10 on Solaris. Signed-off-by: Stefan Metzmacher Signed-off-by: Björn Jacke Autobuild-User(master): Björn Jacke Autobuild-Date(master): Wed Nov 14 19:41:14 CET 2012 on sn-devel-104 --- lib/replace/replace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/replace/replace.c') 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; -- cgit