openttd updated to 1.5.0-beta2
--HG-- branch : openttd
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $Id: ini.cpp 26058 2013-11-23 13:15:07Z rubidium $ */
|
||||
/* $Id: ini.cpp 26517 2014-04-26 07:30:15Z rubidium $ */
|
||||
|
||||
/*
|
||||
* This file is part of OpenTTD.
|
||||
@@ -26,6 +26,8 @@
|
||||
# include "core/mem_func.hpp"
|
||||
#endif
|
||||
|
||||
#include "safeguards.h"
|
||||
|
||||
/**
|
||||
* Create a new ini file with given group names.
|
||||
* @param list_group_names A \c NULL terminated list with group names that should be loaded as lists instead of variables. @see IGT_LIST
|
||||
@@ -87,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);
|
||||
|
||||
Reference in New Issue
Block a user