diff options
author | rubidium <rubidium@openttd.org> | 2014-04-26 07:30:15 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2014-04-26 07:30:15 +0000 |
commit | 5ebf72d1260fbe38e1a3ee118ac4b692041c9885 (patch) | |
tree | 27233294d8b8663b7bd41c01dfaaa9e2c809482d /src/ini.cpp | |
parent | 5ef2042819ea612a50b6ba01411cc9b083e34096 (diff) | |
download | openttd-5ebf72d1260fbe38e1a3ee118ac4b692041c9885.tar.xz |
(svn r26517) -Fix: Windows 9x (or rather non-unicode) compile failures
Diffstat (limited to 'src/ini.cpp')
-rw-r--r-- | src/ini.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ini.cpp b/src/ini.cpp index 2e4e9097f..ccce19239 100644 --- a/src/ini.cpp +++ b/src/ini.cpp @@ -89,6 +89,8 @@ bool IniFile::SaveToDisk(const char *filename) #endif #if defined(WIN32) || defined(WIN64) + /* _tcsncpy = strcpy is TCHAR is char, but isn't when TCHAR is wchar. */ + #undef strncpy /* Allocate space for one more \0 character. */ TCHAR tfilename[MAX_PATH + 1], tfile_new[MAX_PATH + 1]; _tcsncpy(tfilename, OTTD2FS(filename), MAX_PATH); |