Fix buffer overflow problem in ft_build.c