[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: two changes I'd like to see in version 3.1
- From: alan@... (Alan Watson)
- Date: Tue, 23 Jun 1998 10:35:00 -0500
> void luaL_verror (char *fmt, ...)
> {
> char buff[500];
> va_list argp;
> va_start(argp, fmt);
> vsprintf(buff, fmt, argp);
> va_end(argp);
> lua_error(buff);
> }
>
> Unfortunately, until the new ANSI C is out, there is no way to avoid the
> fixed size buffer and the danger for overflow in vsprintf.
Right, which is why lua_error should have the same arguments
as printf.
Alan
--
Dr Alan Watson
Instituto de Astronomía UNAM