Fix FTS buffer overflow issue under GCC