[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Bug in read( file, "*a" ) (and LuaPreprocessor)
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 19 Jun 2000 10:49:28 -0300
> " strfind( strToSearch, '#ifdef LUA_PREPROCESSOR', 15218 ) "
Quite for sure your problem is the reported bug with strfind. It happens
exactly when you use an offset in the search; it is not subtracting the
offset from the string length, so it keeps searching 15218 characteres
after the end of the string. (Just out of curiosity: what is "15218"?)
-- Roberto