diff options
author | tron <tron@openttd.org> | 2005-02-08 17:31:13 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-02-08 17:31:13 +0000 |
commit | 3608b72a36ac934dced23531cfa8d1052ecbaa40 (patch) | |
tree | 25d99e1bb0c184b142a1adba49f0df601aadf347 | |
parent | a17d6e392275dd4bbdc0e4447f5a9b42afc45b24 (diff) | |
download | openttd-3608b72a36ac934dced23531cfa8d1052ecbaa40.tar.xz |
(svn r1850) Change the last consumers of str_buffr so they use local static buffers now and remove the global array str_buffr.
-rw-r--r-- | os2.c | 1 | ||||
-rw-r--r-- | unix.c | 1 | ||||
-rw-r--r-- | variables.h | 1 | ||||
-rw-r--r-- | win32.c | 1 |
4 files changed, 3 insertions, 1 deletions
@@ -330,6 +330,7 @@ void FiosFreeSavegameList() // Browse to char *FiosBrowseTo(const FiosItem *item) { + static char str_buffr[512]; char *path = _fios_path; char *s; @@ -254,6 +254,7 @@ void FiosFreeSavegameList(void) // Browse to char *FiosBrowseTo(const FiosItem *item) { + static char str_buffr[512]; char *path = _fios_path; char *s; diff --git a/variables.h b/variables.h index 19e96d428..ef0ff1ad1 100644 --- a/variables.h +++ b/variables.h @@ -431,7 +431,6 @@ extern const byte _airport_size_x[5]; extern const byte _airport_size_y[5]; /* misc */ -VARDEF char str_buffr[512]; VARDEF char _screenshot_name[128]; #define USERSTRING_LEN 128 VARDEF char _userstring[USERSTRING_LEN]; @@ -1731,6 +1731,7 @@ void FiosFreeSavegameList(void) // Browse to char *FiosBrowseTo(const FiosItem *item) { + static char str_buffr[512]; char *path = _fios_path; char *s; |