NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/50269: bad macro: luaconf.h: #define sprintf(s,fmt,...) snprintf(s, sizeof(s), fmt, __VA_ARGS__)



The following reply was made to PR lib/50269; it has been noted by GNATS.

From: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: lib/50269: bad macro: luaconf.h: #define sprintf(s,fmt,...)
 snprintf(s, sizeof(s), fmt, __VA_ARGS__)
Date: Sat, 10 Oct 2015 23:40:18 +0000

 On Wed, Sep 23, 2015 at 08:00:00PM +0000, andrew.cagney%gmail.com@localhost wrote:
  > The macro sprintf as defined in src/external/mit/lua/dist/src/luaconf.h vis:
  > 
  >     #define sprintf(s,fmt,...)  snprintf(s, sizeof(s), fmt, __VA_ARGS__)
  > 
  > is broken.
 
 Indeed. That and anything that relies on it should be removed.
 
 -- 
 David A. Holland
 dholland%netbsd.org@localhost
 


Home | Main Index | Thread Index | Old Index