some sprintf()s replaced with wxString::Printf

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1062 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1998-11-26 15:21:12 +00:00
parent ff528365c8
commit 53c6e7ccd2
8 changed files with 40 additions and 55 deletions

View File

@@ -80,10 +80,6 @@
#define _MAXPATHLEN 500
#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxPathList, wxStringList)
#endif
extern char *wxBuffer;
void wxPathList::Add (const wxString& path)
@@ -955,7 +951,7 @@ char *wxGetTempFileName(const wxString& prefix, char *buf)
#else
static short last_temp = 0; // cache last to speed things a bit
// At most 1000 temp files to a process! We use a ring count.
char tmp[100];
char tmp[100]; // FIXME static buffer
for (short suffix = last_temp + 1; suffix != last_temp; ++suffix %= 1000)
{
@@ -1029,7 +1025,7 @@ char *wxFindFirstFile(const char *spec, int flags)
char *wxFindNextFile(void)
{
#ifndef __VMS__
static char buf[400];
static char buf[400]; // FIXME static buffer
/* MATTHEW: [2] Don't crash if we read too many times */
if (!wxDirStream)
@@ -1555,4 +1551,4 @@ bool wxMatchWild( const wxString& pat, const wxString& text, bool dot_special )
#ifdef _MSC_VER
#pragma warning(default:4706) // assignment within conditional expression
#endif // VC++
#endif // VC++