On Thu, Jan 07, 2010 at 09:03:19AM -0500, Chet Ramey wrote: > *** ../bash-4.1/builtins/printf.def 2009-11-20 15:31:23.000000000 -0500 > --- builtins/printf.def 2010-01-07 08:50:06.000000000 -0500 > *************** > *** 173,177 **** > > #if !HAVE_VSNPRINTF > ! extern int vsnprintf __P((char *, size_t, const char *, ...)) > __attribute__((__format__ (printf, 3, 4))); > #endif > > --- 173,177 ---- > > #if !HAVE_VSNPRINTF > ! extern int vsnprintf __P((char *, size_t, const char *, va_list)) > __attribute__((__format__ (printf, 3, 0))); > #endif >
Looks good. HP-UX 11.11 had the same problem Yann reported on Solaris (I hadn't tested on that machine -- oops!), and this patch fixes it there. HP-UX 10.20 doesn't have a prototype for vsnprintf at all, so there was never a problem on that machine (it works either with or without the patch).