From: Bruno Haible Date: Sun, 11 Mar 2007 22:55:55 +0000 (+0000) Subject: Use the system's sprintf function. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be32efb04886e87c01ffcf2b9cccfc85a5d77f81;p=pspp Use the system's sprintf function. --- diff --git a/ChangeLog b/ChangeLog index f3ea3014d6..7d34cd2142 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-03-11 Bruno Haible + + * lib/vasnprintf.c (sprintf): Undefine. + 2007-03-11 Bruno Haible * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding diff --git a/lib/vasnprintf.c b/lib/vasnprintf.c index 6c328aeb0a..34d2a46876 100644 --- a/lib/vasnprintf.c +++ b/lib/vasnprintf.c @@ -114,6 +114,8 @@ local_wcslen (const wchar_t *s) # undef snprintf # endif #endif +/* Here we need to call the native sprintf, not rpl_sprintf. */ +#undef sprintf CHAR_T * VASNPRINTF (CHAR_T *resultbuf, size_t *lengthp, const CHAR_T *format, va_list args)