(svn r1850) Change the last consumers of str_buffr so they use local static buffers now and remove the global array str_buffr.
authortron
Tue, 08 Feb 2005 17:31:13 +0000
changeset 1346 6d940a8a8103
parent 1345 5cb0e0eda22d
child 1347 48793ec09d32
(svn r1850) Change the last consumers of str_buffr so they use local static buffers now and remove the global array str_buffr.
os2.c
unix.c
variables.h
win32.c
--- a/os2.c	Tue Feb 08 16:53:28 2005 +0000
+++ b/os2.c	Tue Feb 08 17:31:13 2005 +0000
@@ -330,6 +330,7 @@
 // Browse to
 char *FiosBrowseTo(const FiosItem *item)
 {
+	static char str_buffr[512];
 	char *path = _fios_path;
 	char *s;
 
--- a/unix.c	Tue Feb 08 16:53:28 2005 +0000
+++ b/unix.c	Tue Feb 08 17:31:13 2005 +0000
@@ -254,6 +254,7 @@
 // Browse to
 char *FiosBrowseTo(const FiosItem *item)
 {
+	static char str_buffr[512];
 	char *path = _fios_path;
 	char *s;
 
--- a/variables.h	Tue Feb 08 16:53:28 2005 +0000
+++ b/variables.h	Tue Feb 08 17:31:13 2005 +0000
@@ -431,7 +431,6 @@
 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];
--- a/win32.c	Tue Feb 08 16:53:28 2005 +0000
+++ b/win32.c	Tue Feb 08 17:31:13 2005 +0000
@@ -1731,6 +1731,7 @@
 // Browse to
 char *FiosBrowseTo(const FiosItem *item)
 {
+	static char str_buffr[512];
 	char *path = _fios_path;
 	char *s;