mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-02 17:26:35 +01:00
(svn r1850) Change the last consumers of str_buffr so they use local static buffers now and remove the global array str_buffr.
This commit is contained in:
parent
8aee833024
commit
4b2e34e0aa
1
os2.c
1
os2.c
@ -330,6 +330,7 @@ void FiosFreeSavegameList()
|
|||||||
// Browse to
|
// Browse to
|
||||||
char *FiosBrowseTo(const FiosItem *item)
|
char *FiosBrowseTo(const FiosItem *item)
|
||||||
{
|
{
|
||||||
|
static char str_buffr[512];
|
||||||
char *path = _fios_path;
|
char *path = _fios_path;
|
||||||
char *s;
|
char *s;
|
||||||
|
|
||||||
|
1
unix.c
1
unix.c
@ -254,6 +254,7 @@ void FiosFreeSavegameList(void)
|
|||||||
// Browse to
|
// Browse to
|
||||||
char *FiosBrowseTo(const FiosItem *item)
|
char *FiosBrowseTo(const FiosItem *item)
|
||||||
{
|
{
|
||||||
|
static char str_buffr[512];
|
||||||
char *path = _fios_path;
|
char *path = _fios_path;
|
||||||
char *s;
|
char *s;
|
||||||
|
|
||||||
|
@ -431,7 +431,6 @@ extern const byte _airport_size_x[5];
|
|||||||
extern const byte _airport_size_y[5];
|
extern const byte _airport_size_y[5];
|
||||||
|
|
||||||
/* misc */
|
/* misc */
|
||||||
VARDEF char str_buffr[512];
|
|
||||||
VARDEF char _screenshot_name[128];
|
VARDEF char _screenshot_name[128];
|
||||||
#define USERSTRING_LEN 128
|
#define USERSTRING_LEN 128
|
||||||
VARDEF char _userstring[USERSTRING_LEN];
|
VARDEF char _userstring[USERSTRING_LEN];
|
||||||
|
Loading…
Reference in New Issue
Block a user