Changeset - r11999:491a857b1cc1
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2009-05-24 09:35:46
rubidium@openttd.org
(svn r16410) -Fix (r16307): don't assume the extension starts with the first '.', but with the last '.'. This way depend doesn't fail if there's a dot in your path, e.g. 'gcc-4.4'.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/depend/depend.cpp
Show inline comments
 
@@ -645,7 +645,7 @@ void ScanFile(const char *filename, cons
 
										/* Replace the extension with the provided extension of '.o'. */
 
										char path[PATH_MAX];
 
										strcpy(path, filename);
 
										*(strchr(path, '.')) = '\0';
 
										*(strrchr(path, '.')) = '\0';
 
										strcat(path, ext != NULL ? ext : ".o");
 
										curfile = _files.find(path);
 
										if (curfile == _files.end()) {
0 comments (0 inline, 0 general)