Fix format type warning, fix strcat compile error.