(svn r5684) - Codechange: create an strtolower() function that uses tolower() on a whole string and apply it in the places this was used.

This commit is contained in:
Darkvater
2006-07-31 22:11:34 +00:00
parent cc88f3591f
commit 01f11b9970
4 changed files with 24 additions and 29 deletions

View File

@@ -9,6 +9,7 @@
#include "spritecache.h"
#include "table/sprites.h"
#include "fileio.h"
#include "string.h"
#include "newgrf.h"
#include "md5.h"
#include "variables.h"
@@ -123,10 +124,7 @@ static bool FileMD5(const MD5File file, bool warn)
#if !defined(WIN32)
if (f == NULL) {
char *s;
// make lower case and check again
for (s = buf + strlen(_path.data_dir) - 1; *s != '\0'; s++)
*s = tolower(*s);
strtolower(buf + strlen(_path.data_dir) - 1);
f = fopen(buf, "rb");
}
#endif