gfxinit.c
changeset 5170 56c12a62af49
parent 5156 5edaa8f9b295
child 5296 6a4aaa66eed3
equal deleted inserted replaced
5169:56b54b6e54ec 5170:56c12a62af49
   109 {
   109 {
   110 	FILE *f;
   110 	FILE *f;
   111 	char buf[MAX_PATH];
   111 	char buf[MAX_PATH];
   112 
   112 
   113 	// open file
   113 	// open file
   114 	sprintf(buf, "%s%s", _path.data_dir, file.filename);
   114 	snprintf(buf, lengthof(buf), "%s%s", _path.data_dir, file.filename);
   115 	f = fopen(buf, "rb");
   115 	f = fopen(buf, "rb");
   116 
   116 
   117 #if !defined(WIN32)
   117 #if !defined(WIN32)
   118 	if (f == NULL) {
   118 	if (f == NULL) {
   119 		strtolower(buf + strlen(_path.data_dir) - 1);
   119 		strtolower(buf + strlen(_path.data_dir) - 1);