On Mon, Feb 08, 2010, git version control wrote: > int l = strlen( ppsz_lua_exts[j] ); > - if( !strcmp( file+i-l, ppsz_lua_exts[j] ) ) > + if( i >= l && !strcmp( file+i-l, ppsz_lua_exts[j] ) ) Nice catch. Thanks. -- Antoine Cellerier dionoea