equal
deleted
inserted
replaced
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); |