diff options
author | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-11-13 01:39:22 +0000 |
---|---|---|
committer | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-11-13 01:39:22 +0000 |
commit | 5fa3fd9274a2cb3b3cff82e85713983579de2a13 (patch) | |
tree | f21fe4dedd5f8490f9bb66638d1afa1b91de5890 | |
parent | 9f0f8651f390bc5bd3a20aa88a05106ccbf69648 (diff) |
Do *NOT* use local vars in ServerConfig::Read for temporary storage of values
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5733 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/configreader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index ea5d09db9..df1b5f944 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -531,8 +531,8 @@ bool DoneMaxBans(ServerConfig* conf, const char* tag) void ServerConfig::Read(bool bail, userrec* user) { - char debug[MAXBUF]; /* Temporary buffer for debugging value */ - char maxkeep[MAXBUF]; /* Temporary buffer for WhoWasMaxKeep value */ + static char debug[MAXBUF]; /* Temporary buffer for debugging value */ + static char maxkeep[MAXBUF]; /* Temporary buffer for WhoWasMaxKeep value */ char* data[12]; /* Temporary buffers for reading multiple occurance tags into */ void* ptr[12]; /* Temporary pointers for passing to callbacks */ int r_i[12]; /* Temporary array for casting */ |