improve the relative friso.lex.ini searching
fix bug for buffer reach the length of allocations