[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: GluaX fixes (minor)
- From: Gunnar Zötl <gz@...>
- Date: Wed, 12 Feb 2003 12:48:56 +0100
AK> Also, I've acknowledged the mention of buffer overruns. As far as I know,
AK> such places only exist in the generation of error messages, but I'll
AK> eliminate even them in future releases. The problem is, 'lua_pushfstring()'
AK> does not exist for Lua 4.0 so I need to use regular 'sprintf()'. Any ideas?
some time ago, I have written a length estimator for the printf
function. i.e. You pass in the format string and the arguments, and it
will return a number that is equal to or a bit larger than the length
of the formatted result string. I could try to dig it out, if you're
interested.
Gunnar
--
"They that can give up lib- Gunnar Zötl Tel. 06071-612079
erty to obtain a little Friedhofstraße 55 Fax. 01212-512317564
temporary safety deserve 64859 Eppertshausen E-mail gz@tset.de
neither liberty nor safety" - Benjamin Franklin, 1706-1790