1
0
Fork 0

(svn r7349) -Fix (r7348): Stripping data path didn't work for absolute paths.

release/0.5
peter1138 2006-12-04 10:44:17 +00:00
parent bd66cc5756
commit 39e52ca845
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ static uint ScanPath(const char *path)
} else if (sb.st_mode & S_IFREG) {
/* File */
char *ext = strrchr(filename, '.');
char *file = strchr(filename, PATHSEPCHAR) + 1; // Crop base path
char *file = filename + strlen(_path.data_dir) + 1; // Crop base path
/* If no extension or extension isn't .grf, skip the file */
if (ext == NULL) continue;